Can no longer include space between 'header-name:' and value
Bug #1614280 reported by
Tim Burke
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
Fix Released
|
Medium
|
venkatamahesh |
Bug Description
Previously, you could specify additional headers with a command-line like
swift post -H 'X-Storage-Policy: EC' container
But that now results in an error like
Invalid return character or leading space in header: x-storage-policy
We can work around this by either downgrading requests to 2.10 or removing the space so it looks like
swift post -H 'X-Storage-
Both of those options suck; we should just .strip() the header when we're parsing it.
Changed in python-swiftclient: | |
assignee: | nobody → venkatamahesh (venkatamaheshkotha) |
To post a comment you must log in.
nowhey! new requests is mean!? Where's the major version bump new requests?! huh!?
vagrant@saio:~$ pip freeze | grep requests 2.11.1- py2.py3- none-any. whl (514kB) ███████ ███████ ███████ █████| 522kB 2.0MB/s
requests==2.10.0
vagrant@saio:~$ sudo pip install --upgrade requests
Collecting requests
Downloading requests-
100% |██████
Installing collected packages: requests
Found existing installation: requests 2.10.0
Uninstalling requests-2.10.0:
Successfully uninstalled requests-2.10.0
Successfully installed requests-2.11.1
vagrant@saio:~$ swift post monkies2 -H 'x-storage-policy: ec'
Invalid return character or leading space in header: x-storage-policy