next.js
aada6665 - Lowercase only the header names that can be cookie when looking for preview cookies

Commit
22 days ago
Lowercase only the header names that can be cookie when looking for preview cookies hasNoPreviewCookies looks for the first header named cookie in any casing, and lowercased every header name of the request to find it. Only a name of six characters can match, so the others are skipped without creating a lowercased copy.
Author
Committer
Parents
Loading