We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51075a4 commit 4e6f04dCopy full SHA for 4e6f04d
src/main/java/com/github/dockerjava/client/utils/JsonClientFilter.java
@@ -16,7 +16,7 @@ public ClientResponse handle(ClientRequest cr) {
16
// Call the next filter
17
ClientResponse resp = getNext().handle(cr);
18
String respContentType = resp.getHeaders().getFirst("Content-Type");
19
- if (respContentType.startsWith("text/plain")) {
+ if (respContentType!= null && respContentType.startsWith("text/plain")) {
20
String newContentType = "application/json" + respContentType.substring(10);
21
resp.getHeaders().putSingle("Content-Type", newContentType);
22
}
0 commit comments