Skip to content

fix(web): serve SVG with image/svg+xml#1443

Closed
Alix-007 wants to merge 1 commit intosipeed:mainfrom
Alix-007:pr/issue-1410-svg-mime
Closed

fix(web): serve SVG with image/svg+xml#1443
Alix-007 wants to merge 1 commit intosipeed:mainfrom
Alix-007:pr/issue-1410-svg-mime

Conversation

@Alix-007
Copy link
Contributor

📝 Description

Register .svg as image/svg+xml before serving embedded frontend assets so browsers receive the standards-compliant MIME type for SVG resources.

🗣️ Type of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 📖 Documentation update
  • ⚡ Code refactoring (no functional changes, no api changes)

🤖 AI Code Generation

  • 🤖 Fully AI-generated (100% AI, 0% Human)
  • 🛠️ Mostly AI-generated (AI draft, Human verified/modified)
  • 👨‍💻 Mostly Human-written (Human lead, AI assisted or none)

🔗 Related Issue

Fixes #1410

📚 Technical Context (Skip for Docs)

🧪 Test Environment

  • Hardware: PC
  • OS: Windows 11
  • Model/Provider: N/A
  • Channels: N/A

📸 Evidence (Optional)

Click to view Logs/Screenshots
  • go test ./web/backend -run 'Test(UnknownAPIPathStays404|MissingAssetStays404|RegisterEmbedRoutesRegistersSVGContentType)' -count=1

☑️ Checklist

  • My code/docs follow the style of this project.
  • I have performed a self-review of my own changes.
  • I have updated the documentation accordingly.

@sipeed-bot sipeed-bot bot added type: bug Something isn't working go Pull requests that update go code labels Mar 12, 2026
@wj-xiao wj-xiao added the duplicate This issue or pull request already exists label Mar 13, 2026
@wj-xiao
Copy link
Collaborator

wj-xiao commented Mar 13, 2026

Thank you for your contribution.
But I'm sorry this PR duplicates 1429. I have to close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate This issue or pull request already exists go Pull requests that update go code type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] SVG files served with incorrect MIME type (image/svg instead of image/svg+xml)

2 participants