Java42 / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Custom PUT method results in 411 Length Required error #629

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client (e.g. 1.5.0-beta)?

1.11.0-beta

Java environment (e.g. Java 6, Android 2.3, App Engine)?

All

Describe the problem.

Call one of Google's custom methods using PUT fails with a 411 Length Required 
error due to missing Content-Length header.

How would you expect it to be fixed?

Client library should add "Content-Length: 0" header just like it does for 
POST.  Similarly for PATCH.

Original issue reported on code.google.com by yan...@google.com on 15 Oct 2012 at 12:58

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/6688048/

Original comment by yan...@google.com on 15 Oct 2012 at 1:01

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 15 Oct 2012 at 6:44