Skip to content

Fix chunked request detection #65

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

Merged
merged 2 commits into from
Jan 28, 2021
Merged

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Jan 28, 2021

The response to http://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard
has an extra space between Transfer-Encoding: and chunked so the
comparison fails.

Fixes #64

The response to http://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard
has an extra space between Transfer-Encoding: and chunked so the
comparison fails.

Fixes adafruit#64
@tannewt tannewt requested a review from makermelissa January 28, 2021 03:22
@tannewt
Copy link
Member Author

tannewt commented Jan 28, 2021

@jedgarpark This should fix your demo. You can try this version of adafruit_requests.py to see.

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the 2 spaces in Transfer-Encoding: chunked, which is more of a nitpick since it's just a test, it looks good to me. I didn't test.

@jedgarpark
Copy link

It works! Thanks @tannewt

@tannewt
Copy link
Member Author

tannewt commented Jan 28, 2021

Other than the 2 spaces in Transfer-Encoding: chunked, which is more of a nitpick since it's just a test, it looks good to me. I didn't test.

I'm not sure what you mean by this. The test is exactly for the 2 spaces. That's what the ESPN server is giving us and is being fixed.

@makermelissa
Copy link
Collaborator

Oh, then no worries. :)

@makermelissa
Copy link
Collaborator

Also, I was helping John and have tested now.

@tannewt tannewt merged commit f658b39 into adafruit:master Jan 28, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

json file over ~50KB cause parse error
3 participants