Fix gtaskqueue to not pass in body={}. Also fix bug with 0 length POSTs. Reviewed in http://codereview.appspot.com/5694067/.
diff --git a/apiclient/http.py b/apiclient/http.py
index ff61cb1..9fdd39c 100644
--- a/apiclient/http.py
+++ b/apiclient/http.py
@@ -379,6 +379,8 @@
_, body = self.next_chunk(http)
return body
else:
+ if 'content-length' not in self.headers:
+ self.headers['content-length'] = str(self.body_size)
resp, content = http.request(self.uri, self.method,
body=self.body,
headers=self.headers)