Skip to content

fix: encode non-ASCII route params in X-Vinext-Params header#678

Closed
seoJing wants to merge 1 commit intocloudflare:mainfrom
seoJing:fix/non-ascii-rsc-params
Closed

fix: encode non-ASCII route params in X-Vinext-Params header#678
seoJing wants to merge 1 commit intocloudflare:mainfrom
seoJing:fix/non-ascii-rsc-params

Conversation

@seoJing
Copy link
Copy Markdown

@seoJing seoJing commented Mar 24, 2026

Non-ASCII characters in dynamic route parameters (e.g., Korean slugs) cause a ByteString TypeError when set as HTTP header values during RSC streaming. Percent-encode the JSON before setting the header.

Fixes #676

Non-ASCII characters in dynamic route parameters (e.g., Korean slugs)
cause a ByteString TypeError when set as HTTP header values during RSC
streaming. Percent-encode the JSON before setting the header.

Fixes cloudflare#83
@seoJing seoJing closed this Mar 24, 2026
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.

Non-ASCII dynamic route params crash RSC streaming with ByteString error

1 participant