Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
In fact, if you add the following code to line 1195 of httplib2/__init__.py ->
http://code.google.com/p/httplib2/source/browse/python2/httplib2/__init__.py#119
5 it should fix the problem:
for authorization in self._auth_from_challenge(host, request_uri, headers, response, content):
# ADDED CODE
if hasattr(body, seek):
body.seek(0)
# END
authorization.request(method, request_uri, headers, body)
(response, content) = self._conn_request(conn, request_uri, method, body, headers, )
if response.status != 401:
self.authorizations.append(authorization)
authorization.response(response, body)
break
Original comment by bost...@gmail.com
on 10 Jun 2011 at 2:14
body must always be a string, it has never supported a file handle.
Original comment by joe.gregorio@gmail.com
on 13 Jun 2011 at 5:13
Original issue reported on code.google.com by
bost...@gmail.com
on 31 May 2011 at 4:38