Skip to content

fix(mime): register SVG MIME type in init function - #1060

Merged
Xe merged 1 commit into
mainfrom
me/site-6-svg-diagrams-are-broken
Nov 1, 2025
Merged

fix(mime): register SVG MIME type in init function#1060
Xe merged 1 commit into
mainfrom
me/site-6-svg-diagrams-are-broken

Conversation

@Xe

@Xe Xe commented Nov 1, 2025

Copy link
Copy Markdown
Owner

Summary

  • Add image/svg+xml MIME type registration for .svg files to ensure SVG images are served with the correct content type
  • Uses init() function in internal package for automatic registration when the package is imported

Changes

  • Added MIME type registration in internal/slog.go init function
  • This ensures SVG files are properly served as image/svg+xml instead of being misidentified

Test plan

  • Verify the code compiles successfully
  • Test that SVG MIME type is registered correctly
  • Ensure no existing functionality is broken

Fixes #SITE-6

@linear

linear Bot commented Nov 1, 2025

Copy link
Copy Markdown

@Xe
Xe merged commit 3cdac09 into main Nov 1, 2025
3 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.

1 participant