Skip to content

Commit dc9f0af

Browse files
author
JacobMoshenko
committed
[Issue 176] URLFetch with a Content-Length header causes an IOException.
1 parent 03a4881 commit dc9f0af

File tree

1 file changed

+0
-3
lines changed
  • google-api-client-extensions/src/main/java/com/google/api/client/extensions/appengine/http/urlfetch

1 file changed

+0
-3
lines changed

google-api-client-extensions/src/main/java/com/google/api/client/extensions/appengine/http/urlfetch/UrlFetchRequest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ public LowLevelHttpResponse execute() throws IOException {
7171
addHeader("Content-Encoding", contentEncoding);
7272
}
7373
long contentLength = content.getLength();
74-
if (contentLength >= 0) {
75-
addHeader("Content-Length", Long.toString(contentLength));
76-
}
7774
if (contentLength != 0) {
7875
ByteArrayOutputStream out = new ByteArrayOutputStream();
7976
content.writeTo(out);

0 commit comments

Comments
 (0)