Skip to content

use forced content type for pyportal discord #1980

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 1 commit into from
Jan 18, 2022

Conversation

FoamyGuy
Copy link
Collaborator

The issue that this resolves was raised here: adafruit/Adafruit_CircuitPython_PortalBase#57

This project fetches an SVG file and then parses it as text.

At some point the PyPortal library got improved features for handling more content types and it started relying on content_type returned by the server.

In the case of this project it broke because the server is using image/svg type, but we want to ignore image and parse it as text.

This uses the fix introduced with: adafruit/Adafruit_CircuitPython_PyPortal#120

I tested this fix successfully on a PyPortal with 7.1.0

@TheKitty TheKitty merged commit b83dd25 into adafruit:main Jan 18, 2022
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.

2 participants