We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In a text-callback for GET I used request.qs to get the original parameters as dict. But all keys and values are converted to lowercase.
request.qs
this bug seems to exist since a long time and it was fixed 2016 in the openstack version.
https://bugs.launchpad.net/requests-mock/+bug/1584008
As a workaround I used
from urllib import parse ... def text_callback(request, context): qs = parse.parse_qs(parse.urlparse(request.url).query)
The text was updated successfully, but these errors were encountered:
Looks like the problem originates here:
requests-mock/requests_mock/request.py
Lines 60 to 61 in 9742d02
Note the fixme that looks pretty old:
Lines 42 to 44 in 9742d02
I'll try putting together a fix.
Sorry, something went wrong.
No branches or pull requests
In a text-callback for GET I used
request.qs
to get the original parameters as dict.But all keys and values are converted to lowercase.
this bug seems to exist since a long time and it was fixed 2016 in the openstack version.
https://bugs.launchpad.net/requests-mock/+bug/1584008
As a workaround I used
The text was updated successfully, but these errors were encountered: