mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #678] [CLOSED] fix: encode non-ASCII route params in X-Vinext-Params header #763
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#763
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/678
Author: @seoJing
Created: 3/24/2026
Status: ❌ Closed
Base:
main← Head:fix/non-ascii-rsc-params📝 Commits (1)
31cea27fix: percent-encode non-ASCII params in RSC header📊 Changes
3 files changed (+476 additions, -429 deletions)
View changed files
📝
packages/vinext/src/server/app-browser-entry.ts(+2 -2)📝
packages/vinext/src/server/app-page-response.ts(+201 -188)📝
tests/app-page-response.test.ts(+273 -239)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.