fix(setCookie): allow cookies with the same name but different options#606
fix(setCookie): allow cookies with the same name but different options#606
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #606 +/- ##
==========================================
+ Coverage 74.65% 74.67% +0.01%
==========================================
Files 47 47
Lines 4246 4249 +3
Branches 574 571 -3
==========================================
+ Hits 3170 3173 +3
Misses 1061 1061
Partials 15 15 ☔ View full report in Codecov by Sentry. |
|
@unite4 @pi0 I'm a bit confused by the semantics of |
|
Currently, it is not possible to set custom session data for the first request: const session = await useSession(...) // Adds set-cookie with empty data
session.update(...) // Adds set-cookie with custom dataThe response returns two identical set-cookie headers, but it seems the browser uses only the first one. Related: #705 |
🔗 Linked issue
#598
❓ Type of change
📚 Description
Resolves #598
📝 Checklist