http://codereview.appspot.com/6463064/diff/1/google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpRequest.java File google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpRequest.java (right): http://codereview.appspot.com/6463064/diff/1/google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpRequest.java#newcode93 google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpRequest.java:93: // for HEAD, OPTIONS, DELETE, or TRACE it would ...
11 years, 8 months ago
(2012-08-22 14:36:44 UTC)
#3
11 years, 8 months ago
(2012-08-22 18:55:07 UTC)
#4
http://codereview.appspot.com/6463064/diff/1/google-http-client/src/main/java...
File
google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpRequest.java
(right):
http://codereview.appspot.com/6463064/diff/1/google-http-client/src/main/java...
google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpRequest.java:76:
// TODO(yanivi): deprecate HttpRequest.setAllowEmptyContent()?
On 2012/08/22 12:22:16, rmistry wrote:
> Lets remove the TODO because we have a CL out for it.
Done.
http://codereview.appspot.com/6463064/diff/1/google-http-client/src/main/java...
google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpRequest.java:93:
// for HEAD, OPTIONS, DELETE, or TRACE it would throw an exceptions
On 2012/08/22 12:22:16, rmistry wrote:
> I am missing something, setDoOutput(true) is not called here, shouldn't it be
> called?
No. I changed the wording of the comment. Hopefully it is more clear now.
http://codereview.appspot.com/6463064/diff/1/google-http-client/src/main/java...
google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpRequest.java:93:
// for HEAD, OPTIONS, DELETE, or TRACE it would throw an exceptions
On 2012/08/22 14:36:44, rmistry wrote:
> On 2012/08/22 12:22:16, rmistry wrote:
> > I am missing something, setDoOutput(true) is not called here, shouldn't it
be
> > called?
>
> Lets add an upgrade warning since the behavior has changed for GET + content.
Done.
Also, I am assuming http://codereview.appspot.com/6458156/ will be changed to set the empty content? http://codereview.appspot.com/6463064/diff/7001/google-http-client/src/main/java/com/google/api/client/testing/http/javanet/package-info.java File ...
11 years, 8 months ago
(2012-08-22 19:00:08 UTC)
#5
Issue 6463064: [http issue 115] NetHttpTransport drops Content-Length header when posting 0-length data
(Closed)
Created 11 years, 8 months ago by yanivi
Modified 11 years, 8 months ago
Reviewers: rmistry, mharris
Base URL: https://google-http-java-client.googlecode.com/hg/
Comments: 12