Skip to content

Commit

Permalink
Fix for newer version of httplib
Browse files Browse the repository at this point in the history
httplib in python 2.7 requires that the lenght parameter is a string
and not an int.
  • Loading branch information
reuteras committed Oct 9, 2011
1 parent ff29129 commit 7b311d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tweepy/api.py
Expand Up @@ -747,7 +747,7 @@ def _pack_image(filename, max_size):
# build headers
headers = {
'Content-Type': 'multipart/form-data; boundary=Tw3ePy',
'Content-Length': len(body)
'Content-Length': str(len(body))
}

return headers, body
Expand Down

0 comments on commit 7b311d6

Please sign in to comment.