diff options
author | Tim Burke <tim.burke@gmail.com> | 2016-08-25 10:51:29 -0700 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2016-08-25 11:32:08 -0700 |
commit | ab60e08e2e34ac4a87bc6c1701c6ace69bb392cf (patch) | |
tree | b955ac317d9463bb8a2a6f453f56fd116050ef04 /swiftclient/utils.py | |
parent | 5acefd27e4e4de01414cc67f6652cc946b51957b (diff) | |
download | python-swiftclient-ab60e08e2e34ac4a87bc6c1701c6ace69bb392cf.tar.gz |
Convert numeric and boolean header values to strings
Recently, requests got a bit more picky about what types of data it will
accept as header values [1]. The reasons for this are generally sound;
str()ing arbitrary objects just before pushing them out a socket may not
do what the developer wanted/expected.
However, there are a few standard types that developers may be sending
that we should convert for them as a convenience. Now, we'll convert all
int, float, and bool values to strings before sending them on to
requests.
Change-Id: I6c2f451009cb03cb78812f54e4ed8566076de821
Closes-Bug: 1614932
Diffstat (limited to 'swiftclient/utils.py')
0 files changed, 0 insertions, 0 deletions