Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3270)

Issue 13094046: http Issue 225: When redirects on 303 are changed to GET, they must have empty content (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by ngmiceli
Modified:
12 years ago
Reviewers:
yanivi
Base URL:
https://code.google.com/p/google-http-java-client
Visibility:
Public.

Description

http Issue 225: When redirects on 303 are changed to GET, they must have empty content https://code.google.com/p/google-http-java-client/issues/detail?id=225 Previously, a POST with content on 303 would cause the following: java.lang.IllegalArgumentException: GET with non-zero content length is not supported at com.google.api.client.repackaged.com.google.common.base.Preconditions.checkArgument(Preconditions.java:119) at com.google.api.client.util.Preconditions.checkArgument(Preconditions.java:69) at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:86) at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:960)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added upgrade warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -1 line) Patch
M google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java View 1 2 chunks +8 lines, -0 lines 0 comments Download
M google-http-client/src/test/java/com/google/api/client/http/HttpRequestTest.java View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 4
ngmiceli
12 years ago (2013-08-21 20:46:24 UTC) #1
yanivi
LGTM https://codereview.appspot.com/13094046/diff/1/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java File google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java (right): https://codereview.appspot.com/13094046/diff/1/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java#newcode1103 google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java:1103: * </p> add an upgrade warning to explain ...
12 years ago (2013-08-22 19:43:04 UTC) #2
ngmiceli
PTAL https://codereview.appspot.com/13094046/diff/1/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java File google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java (right): https://codereview.appspot.com/13094046/diff/1/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java#newcode1103 google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java:1103: * </p> On 2013/08/22 19:43:05, yanivi wrote: > ...
12 years ago (2013-08-23 13:35:36 UTC) #3
yanivi
12 years ago (2013-08-23 15:35:42 UTC) #4
LGTM
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b