Updated requests library to version 1.2.3

This commit is contained in:
sax
2013-06-14 23:31:47 +02:00
committed by Ruud
parent a1a7fec15f
commit 580d43aeaf
112 changed files with 1557 additions and 18876 deletions
+4 -1
View File
@@ -81,7 +81,10 @@ class MultipartPostHandler(urllib2.BaseHandler):
buffer += 'Content-Disposition: form-data; name="%s"; filename="%s"\r\n' % (key, filename)
buffer += 'Content-Type: %s\r\n' % contenttype
# buffer += 'Content-Length: %s\r\n' % file_size
buffer += '\r\n' + data_in + '\r\n'
try:
buffer += '\r\n' + data_in + '\r\n'
except Exception as e:
raise e
buffer += '--%s--\r\n\r\n' % boundary
return boundary, buffer