We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0502d10 + 9b45d93 commit 28c742aCopy full SHA for 28c742a
src/main/java/com/github/dockerjava/jaxrs/BuildImageCmdExec.java
@@ -8,6 +8,8 @@
8
import javax.ws.rs.core.MediaType;
9
import javax.ws.rs.core.Response;
10
11
+import org.glassfish.jersey.client.ClientProperties;
12
+import org.glassfish.jersey.client.RequestEntityProcessing;
13
import org.slf4j.Logger;
14
import org.slf4j.LoggerFactory;
15
@@ -39,6 +41,10 @@ protected InputStream execute(BuildImageCmd command) {
39
41
webResource = webResource.queryParam("q", "true");
40
42
}
43
44
+
45
+ webResource.property(ClientProperties.REQUEST_ENTITY_PROCESSING, RequestEntityProcessing.CHUNKED);
46
+ webResource.property(ClientProperties.CHUNKED_ENCODING_SIZE, 1024*1024);
47
48
LOGGER.debug("POST: {}", webResource);
49
return webResource
50
.request()
0 commit comments