Skip to content

fix(files): include charset in text/* and image/svg+xml downloads#1426

Closed
brianbckim wants to merge 1 commit intookpy:masterfrom
brianbckim:fix/content-type-charset
Closed

fix(files): include charset in text/* and image/svg+xml downloads#1426
brianbckim wants to merge 1 commit intookpy:masterfrom
brianbckim:fix/content-type-charset

Conversation

@brianbckim
Copy link
Copy Markdown

Context
Some download responses returned Content-Type without charset while tests expect ; charset=utf-8.

Changes

  • Ensure Content-Type includes ; charset=utf-8 for text/* and image/svg+xml
  • LOCAL path: Response(..., content_type=...) + explicit header
  • Redirect (raw): add response-content-type with charset

Verification
python -m pytest -k "test_web_download or test_api_download" -q

@brianbckim brianbckim closed this Mar 24, 2026
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.

1 participant