[PR #8301] [MERGED] fix(cookies): use lookahead heuristic for splitting Set-Cookie headers #7882

Closed
opened 2026-03-13 13:52:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8301
Author: @bytaesu
Created: 3/2/2026
Status: Merged
Merged: 3/2/2026
Merged by: @Bekacru

Base: canaryHead: 2026-03-03/fix/split-set-cookie-header


📝 Commits (4)

  • 5ac7837 fix(cookies): use lookahead heuristic for splitting Set-Cookie headers
  • 07f6417 fix: spell lint
  • 39f2cca correct comment
  • d326d1d chore: more correct comment

📊 Changes

2 files changed (+68 additions, -25 deletions)

View changed files

📝 packages/better-auth/src/cookies/cookie-utils.ts (+23 -25)
📝 packages/better-auth/src/cookies/cookies.test.ts (+45 -0)

📄 Description

Related to https://discord.com/channels/1288403910284935179/1477776139027087450


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/8301 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 3/2/2026 **Status:** ✅ Merged **Merged:** 3/2/2026 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `2026-03-03/fix/split-set-cookie-header` --- ### 📝 Commits (4) - [`5ac7837`](https://github.com/better-auth/better-auth/commit/5ac7837f6a40f598f210016296ead3fc45324b7e) fix(cookies): use lookahead heuristic for splitting Set-Cookie headers - [`07f6417`](https://github.com/better-auth/better-auth/commit/07f6417c7d6431780ce2b6a1deb4482fb10b8401) fix: spell lint - [`39f2cca`](https://github.com/better-auth/better-auth/commit/39f2cca31f5e5d0e7aac862e912c4467c5e5e787) correct comment - [`d326d1d`](https://github.com/better-auth/better-auth/commit/d326d1d66820c52d1cba48c15f4959c38dc88a40) chore: more correct comment ### 📊 Changes **2 files changed** (+68 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/cookies/cookie-utils.ts` (+23 -25) 📝 `packages/better-auth/src/cookies/cookies.test.ts` (+45 -0) </details> ### 📄 Description Related to https://discord.com/channels/1288403910284935179/1477776139027087450 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:52:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7882