Comment 4 for bug 1584008

Revision history for this message
Adrian Rogers (bridgenut) wrote :

Apologies if I've missed something here but parse_qs (for me at least with python 2.7.8) seems to give case sensitive results:

>>> urlparse.parse_qs('a=1')
{'a': ['1']}
>>> urlparse.parse_qs('a=1A')
{'a': ['1A']}
>>> urlparse.parse_qs('B=1A')
{'B': ['1A']}

Surely https://github.com/openstack/requests-mock/blob/780eb4b4fe25dddb802b5bfb39f846d7fa60ea9a/requests_mock/adapter.py#L55 is where the problem lies as it's explicitly calling .lower() on the url. Could that bit not be changed?