diff options
author | Tristan Cacqueray <tristan.cacqueray@enovance.com> | 2014-02-14 12:52:26 +0100 |
---|---|---|
committer | Tristan Cacqueray <tristan.cacqueray@enovance.com> | 2014-02-14 16:51:20 +0100 |
commit | 380e83087447b724458ba16e11f527babb39dd01 (patch) | |
tree | 2c1f342a475e1af71eca74c0e208cdf1915c0e3f /tests/test_swiftclient.py | |
parent | 79f189a59352ee5b11a584924f5066b511b482b0 (diff) | |
download | python-swiftclient-380e83087447b724458ba16e11f527babb39dd01.tar.gz |
Remove multipart/form-data file upload2.0.2
The requests 'files' parameter adds this 'Content-Type: multipart/form-data'
HTTP header and the whole multipart body data get stored with the object.
This also create a memory hog issue because files are loaded in memory before
being actually sent. This patch removes this behavior and restores what was
done before, ie: direct uploading.
This patches also fixes an issue in requests, when used with glance
CooperativeReader it mis-calculates content-length leading to chunked encoding
for raw upload.
Change-Id: Ie5b0a1078bedd33f09c6157f48b5f88116c589fa
Closes-Bug: #1280072
Closes-Bug: #1280275
Diffstat (limited to 'tests/test_swiftclient.py')
0 files changed, 0 insertions, 0 deletions