Skip to content

Implement middleware to handle multi set cookie#45

Open
FabienArcellier wants to merge 1 commit into
thomasw:masterfrom
FabienArcellier:implement-middleware-to-handle-multi-set-cookie
Open

Implement middleware to handle multi set cookie#45
FabienArcellier wants to merge 1 commit into
thomasw:masterfrom
FabienArcellier:implement-middleware-to-handle-multi-set-cookie

Conversation

@FabienArcellier
Copy link
Copy Markdown

@FabienArcellier FabienArcellier commented Nov 5, 2022

Related to #44
Handles the transmission of multiple cookies returned by a server as multiple set-cookie headers.

Request merges the set-cookie headers into one. The default behavior is ok
if the server returns only one cookie per http response.

The browser will receive only one cookie.

{
    Set-Cookie: hello=world; Expires=Wed, 21 Oct 2015 07:28:00 GMT, world=hello
}

instead

{
    Set-Cookie: hello=world; Expires=Wed, 21 Oct 2015 07:28:00 GMT
    Set-Cookie: world=hello
}

more about this behavior

@FabienArcellier FabienArcellier force-pushed the implement-middleware-to-handle-multi-set-cookie branch from 8cb0b43 to 1061149 Compare November 5, 2022 13:58
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.

1 participant