Instantly share code, notes, and snippets.
According to RFC 6265, Section 5.4:
When the user agent generates an HTTP request, the user agent MUST NOT attach more than one Cookie header field.
As such, I believe this implementation isn't quite right since it will result in multiple Cookie headers being set.
Cookie
Sorry, something went wrong.
Yes @rpendleton you are right this leads to a formatting where the semicolon is missing.
According to RFC 6265, Section 5.4:
As such, I believe this implementation isn't quite right since it will result in multiple
Cookie
headers being set.