You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Returning read() from an endpoint truncates an inline SVG with a non-ASCII title #17589
An endpoint returning read(icon) serves a truncated SVG when the imported SVG is inlined and contains a non-ASCII <title>. The response is HTTP 200, but its body is missing the closing </svg>, so the image cannot be parsed. I intend to submit a fix with a regression test.
I reproduced the issue, but could not produce a safe, verified fix.
Reproduction
I ported the reported setup to SvelteLab.
What I tried
Loaded issue Returning read() from an endpoint truncates an inline SVG with a non-ASCII title #17589 and its comments through the GitHub connection; read Kit’s AGENTS.md, CONTRIBUTING.md, and $app/server reference/source.: Confirmed the reported endpoint workflow and identified the non-base64 inline-asset branch using decoded.length for Content-Length.
Cloned https://github.com/clean99/oss-pr-media and ran npm install, npm run build, and npm run preview -- --host 0.0.0.0 in sveltekit/inline-asset-content-length.: Installation and production build succeeded with the reproduction’s pinned dependencies. npm reported five dependency vulnerabilities; no dependency changes were made.
Requested http://localhost:4173/ with curl -i and opened it with agent-browser.: Reproduced HTTP 200 with Content-Type image/svg+xml and Content-Length 68. The received body ended at the '<' preceding the closing SVG tag. Chromium reported 'Unexpected end of stream'.
Encoded the supplied reproduction as a SvelteLab link.: Created a shareable port preserving the endpoint, SVG, build configuration, and pinned dependency versions. The production failure was observed locally; the hosted SvelteLab was not separately run.
Why I stopped
An existing open pull request already addresses this exact issue: #17590. Per the prior-art stop rule, no competing patch, commit, or push was made. The original production reproduction was independently confirmed.
Activity
svelte-triage-bot commentedon Oct 31, 2026
I reproduced the issue, but could not produce a safe, verified fix.
Reproduction
I ported the reported setup to SvelteLab.
What I tried
Why I stopped
An existing open pull request already addresses this exact issue: #17590. Per the prior-art stop rule, no competing patch, commit, or push was made. The original production reproduction was independently confirmed.