Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
7b311d64
Commit
7b311d64
authored
Oct 09, 2011
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/api.py
View file @
7b311d64
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment