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
Using MicroPython v1.24.1 on 2024-11-29; Raspberry Pi Pico W with RP2040
The trivial test program below works correctly on Python but fails on Micropython :
import requests # test to demonstrate that micropython request incorrectly modifies caller's headers dict headers = {} response = requests.get( url="http://www.google.com", headers=headers, data="string", ) print(headers) assert headers == {}, "requests returned changed headers to parent"
Fix is equally trivial but my github skills are limited.
After these lines:
micropython-lib/python-ecosys/requests/requests/__init__.py
Lines 47 to 48 in e4cf095
Add
else: headers = headers.copy()
to take a local copy for subsequent use in requests().
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using MicroPython v1.24.1 on 2024-11-29; Raspberry Pi Pico W with RP2040
The trivial test program below works correctly on Python but fails on Micropython :
Fix is equally trivial but my github skills are limited.
After these lines:
micropython-lib/python-ecosys/requests/requests/__init__.py
Lines 47 to 48 in e4cf095
Add
to take a local copy for subsequent use in requests().
The text was updated successfully, but these errors were encountered: