mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
6cfdaa60a8
Headers.set() requires ByteString values (chars <= U+00FF). When dynamic route params contain non-ASCII characters (Korean, Japanese, etc.), JSON.stringify preserves them verbatim which causes a TypeError on the Headers.set() call in buildAppPageRscResponse. Fix: encodeURIComponent the JSON on the server side before setting the header, and decodeURIComponent on the client side when reading it back during initial hydration and client-side navigation. Closes #676
vinext
This file is overwritten from the repo root README.md during prepack. Edit the root README.md instead.