diff --git a/tweepy/api.py b/tweepy/api.py index dafb739ec..8f36e3235 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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