-
Notifications
You must be signed in to change notification settings - Fork 35
Refactor request method to use parse_headers #7
New issue
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
Conversation
@mscosti Thanks for the review, made requested changes (modified them a bit to work properly). Test transfer-encoding
Test HTTP Transfer Requests:
|
adafruit_requests.py
Outdated
resp.headers = parse_headers(sock) | ||
if resp.headers.get("transfer-encoding"): | ||
if "chunked" in resp.headers.get("transfer-encoding"): | ||
raise ValueError("Unsupported " + str(line[0])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, missed this one on my first pass. I think this is supposed to be the transfer encoding header value in the exception string.
@mscosti Moved the header value into the exception string...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Updating https://github.com/adafruit/Adafruit_CircuitPython_ILI9341 to 1.0.4 from 1.0.3: > Merge pull request adafruit/Adafruit_CircuitPython_ILI9341#11 from makermelissa/master > Merge pull request adafruit/Adafruit_CircuitPython_ILI9341#10 from makermelissa/master > Merge pull request adafruit/Adafruit_CircuitPython_ILI9341#9 from makermelissa/master Updating https://github.com/adafruit/Adafruit_CircuitPython_Requests to v1.1.0 from v1.0.1: > Merge pull request adafruit/Adafruit_CircuitPython_Requests#7 from brentru/refactor_req > Merge pull request adafruit/Adafruit_CircuitPython_Requests#5 from brentru/add-parse-headers
Addressing #6
Request now uses
parse_headers
.Tested with
WSGIServer.py
on Adafruit CircuitPython 4.0.0 on 2019-05-20; Adafruit PyPortal with samd51j20.https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI/blob/master/examples/server/esp32spi_wsgiserver.py