Skip to content

Commit

Permalink
Don’t specify content length when pulling images (#11343)
Browse files Browse the repository at this point in the history
Fixes: #11342

[skip ci]
  • Loading branch information
krmahadevan committed Dec 3, 2022
1 parent c5943bd commit 397ecec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion java/src/org/openqa/selenium/docker/v1_41/PullImage.java
Expand Up @@ -51,7 +51,6 @@ public void apply(Reference ref) {
String image = String.format("%s/%s", ref.getDomain(), ref.getName());
HttpRequest req = new HttpRequest(POST, String.format("/v%s/images/create", DOCKER_API_VERSION))
.addHeader("Content-Type", JSON_UTF_8)
.addHeader("Content-Length", "0")
.addQueryParameter("fromImage", image);

if (ref.getDigest() != null) {
Expand Down

0 comments on commit 397ecec

Please sign in to comment.