From 7b311d64791a55363d21bbe0a44a49a4a7c61293 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20Reuter=C3=A5s?= Date: Sun, 9 Oct 2011 12:35:01 +0200 Subject: [PATCH] Fix for newer version of httplib httplib in python 2.7 requires that the lenght parameter is a string and not an int. --- tweepy/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/api.py b/tweepy/api.py index dafb739..8f36e32 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 -- 2.25.1