This commit is contained in:
redkale
2023-11-20 22:40:06 +08:00
parent 5be0cb5d2e
commit b1b58da3ec

View File

@@ -356,7 +356,7 @@ public class HttpSimpleRequest extends ClientRequest implements java.io.Serializ
}
public String getHeader(String name, String defaultValue) {
return headers.firstValue(name, defaultValue);
return headers == null ? defaultValue : headers.firstValue(name, defaultValue);
}
public boolean isRpc() {