Task #7824
Story #3944: DataONE Python products
Convert all HTTP headers to strings
Start date:
2016-06-04
Due date:
% Done:
100%
Story Points:
Sprint:
Description
Currently, some HTTP headers are being set as integers, which causes later implicit string conversions. For instance, the Content-Length value gets an "L" at the end when the value does not fit in a native int. Instead, explicitly string format all headers.
E.g.:
headers['Content-Length'] = mmp_body.get_content_length()
to
headers['Content-Length'] = str(mmp_body.get_content_length())
History
#1 Updated by Roger Dahl almost 6 years ago
- % Done changed from 0 to 100
- Assignee set to Roger Dahl
- Status changed from New to Closed
Fixed as we moved to Requests.