Commit 7b311d64 authored by Peter Reuterås's avatar Peter Reuterås
Browse files

Fix for newer version of httplib

httplib in python 2.7 requires that the lenght parameter is a string
and not an int.
parent ff291299
......@@ -747,7 +747,7 @@ class API(object):
# build headers
headers = {
'Content-Type': 'multipart/form-data; boundary=Tw3ePy',
'Content-Length': len(body)
'Content-Length': str(len(body))
return headers, body
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment