b1f7162324
WebOb uses a Mapping class for headers which behaves like a dict but does not inherit from dict, so the isinstance check in fold_headers was not working as expected. This is now replaced with a check for dict-like behaviors. It's a bit of a tossup between doing a hasattr and simply trying to access a key. I chose the former for readability and because we don't actually want to do anything with the value we would retrieve were access by a key legit. Tests are added to specfically cover the use of a webob.headers.EnvironHeaders object, which is what headers in Nova and Nova derivations look like. Change-Id: I31de49bcfd8822c53d3293b106de96138eaf4464 |
||
---|---|---|
.. | ||
tests | ||
__init__.py |