fix(web): correct SVG MIME type to image/svg+xml#1429
Merged
wj-xiao merged 1 commit intosipeed:mainfrom Mar 13, 2026
Merged
Conversation
Go's built-in mime.TypeByExtension returns 'image/svg' for .svg files, but the correct MIME type per RFC 6838 is 'image/svg+xml'. This fix registers the correct MIME type when setting up the static file server. Fixes sipeed#1410
wj-xiao
approved these changes
Mar 13, 2026
Contributor
|
@darrenzeng2025 Good catch on the SVG MIME type issue. Go's built-in mime package returning image/svg instead of image/svg+xml is one of those subtle bugs that can cause real headaches with browser rendering. Clean fix with the error handling too. We're building a PicoClaw Dev Group on Discord for contributors. If you'd like to join, send an email to |
dj-oyu
pushed a commit
to dj-oyu/picoclaw
that referenced
this pull request
Mar 14, 2026
fix(web): correct SVG MIME type to image/svg+xml
dj-oyu
pushed a commit
to dj-oyu/picoclaw
that referenced
this pull request
Mar 16, 2026
fix(web): correct SVG MIME type to image/svg+xml
j0904
pushed a commit
to j0904/picoclaw
that referenced
this pull request
Mar 22, 2026
fix(web): correct SVG MIME type to image/svg+xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #1410
Go's built-in "mime.TypeByExtension" returns "image/svg" for .svg files, but the correct MIME type per RFC 6838 is "image/svg+xml". This PR registers the correct MIME type when setting up the static file server.
Changes
Test plan
🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]