Repository navigation
[vite-plugin] Preserve repeated request cookies in v1 - #16501
Conversation
🦋 Changeset detectedLatest commit: 8f37ae7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@petebacondarwin (recorded author of #16486) and @NuroDev (verified human ant-core approver), could you please check this Vite plugin v1 backport and approve it if it looks good? V1 has the same comma-joining bug for repeated incoming |
|
Codeowners approval required for this PR:
|
|
✅ Approved — No findings. The pull request keeps each repeated Set-Cookie request value separate on both the HTTP and WebSocket upgrade paths, adds tests for both paths, and includes a plugin changeset. The decision is advisory: this comment never approves, blocks or requests changes on the pull request. ✅ All checks passed🚀 Release: ✅ LGTMRisk: Low. One patch changeset for the plugin. The private workspace references and runtime pins are unchanged. 🔒 Security: ✅ LGTMNo security concerns in the header conversion change. 📖 AGENTS.md: ✅ LGTMThe change follows the repository guidance: it uses a 📋 Code Quality: ✅ LGTMThe new Both places that turn incoming requests into Fetch headers now use the helper:
The HTTP spec checks that each ⚡ Performance: ✅ LGTMOnly the request's 📝 Documentation: ✅ LGTMThe changeset describes the fix. No public docs are needed, because no new configuration is added. Reviewed commit: |
commit: |
workers-devprod
left a comment
There was a problem hiding this comment.
Codeowners reviews satisfied
Backports #16486 to Vite plugin v1.
V1 shares the original request conversion bug: the HTTP adapter comma-joins repeated
Set-Cookierequest values, including commas inExpires. Preserve each cookie when converting HTTP requests and WebSocket upgrades. Retain the original real-socket regressions, including normalCookiejoining and other repeated headers.Stacked on #16493. That earlier backport supplies the published HTTP adapter upgrade; this PR contains only the independently remaining header conversion fix, its tests, and one plugin patch changeset. Existing private workspace references and runtime pins remain intact.
Validation:
pnpm build,pnpm check(including types),pnpm test:ci,pnpm test:fixtures, and all 4 WebSocket playground tests in each of dev and preview pass with Node 22.22.1 / pnpm 10.33.0.Note
This is a contribution from an AI agent: Codex.