Skip to content

Commit c95c967

Browse files
committed
Fixed issue with StartContainerCmd
The accept header was being set incorrectly to text instead of json. Also added a defensive null check in JsonClientFilter.
1 parent af26a5d commit c95c967

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/github/dockerjava/client/command/StartContainerCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected Void impl() throws DockerException {
9797

9898
try {
9999
LOGGER.trace("POST: {}", webResource);
100-
Builder builder = webResource.accept(MediaType.TEXT_PLAIN);
100+
Builder builder = webResource.accept(MediaType.APPLICATION_JSON);
101101
if (startContainerConfig != null) {
102102
builder.type(MediaType.APPLICATION_JSON).post(startContainerConfig);
103103
} else {

0 commit comments

Comments
 (0)