Skip to content

Improve compatibility with PyPI mirrors that include charset in content-type headers - #261

Merged
ryanking13 merged 4 commits into
pyodide:mainfrom
MiaowFISH:main
Oct 31, 2025
Merged

Improve compatibility with PyPI mirrors that include charset in content-type headers#261
ryanking13 merged 4 commits into
pyodide:mainfrom
MiaowFISH:main

Conversation

@MiaowFISH

Copy link
Copy Markdown

Resolve #260

Handle content-type headers with parameters like 'application/json; charset=utf-8' by extracting the main content type before matching.

This change extracts the main content type before matching, making the parser selection more flexible while maintaining backward compatibility.

@ryanking13 ryanking13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! could you please update the changelog?

@MiaowFISH

Copy link
Copy Markdown
Author

okay, updated

@ryanking13
ryanking13 merged commit 2febfab into pyodide:main Oct 31, 2025
2 checks passed
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.

Bug: Error trying to decode index url from mirrors that include charset in Content-Type header

2 participants