Skip to content

Use image/svg+xml for overrideMimeType instead of text/xml#1557

Merged
tanem merged 1 commit into
masterfrom
mime
Feb 15, 2026
Merged

Use image/svg+xml for overrideMimeType instead of text/xml#1557
tanem merged 1 commit into
masterfrom
mime

Conversation

@tanem

@tanem tanem commented Feb 15, 2026

Copy link
Copy Markdown
Owner

Switch overrideMimeType from text/xml to image/svg+xml. Both are XML MIME types so responseXML is populated either way, but image/svg+xml is more appropriate for SVG content and avoids a content-type validation failure in older Chromium versions where getResponseHeader returns the overridden type instead of the actual server header.

Fixes #1493

@tanem tanem added the bug label Feb 15, 2026
@tanem tanem merged commit 94a6ca9 into master Feb 15, 2026
1 check passed
@tanem tanem deleted the mime branch February 15, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

httpRequest.overrideMimeType('text/xml') error in old chromium versions

1 participant