-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cookie and port variables fixes #850
Conversation
benjaminchan
commented
Jul 17, 2024
•
edited
Loading
edited
- fix cookie macros types and update description (to account for multiple cookies of same name) and example
- fix cookie variables types and update description (to account for multiple cookies of same name)
- add res.cookies[k][i].unparsed_attribute variable
- update req.url.port description (to call out what happens when port is implied)
- update req/res.cookie, req.url.host descriptions for http header templates variables
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -85,7 +85,7 @@ The source of this data is subject to change. It is currently provided by [MaxMi | |||
| `${req.content_type}` | The media type set in the Content-Type header for this request as a string. | | |||
| `${req.content_type.parameters}` | The parameters set in the Content-Type header as a key value map. | | |||
| `${req.content_type.raw}` | The Content-Type header for this request as a string. | | |||
| `${req.cookies}` | The key value map of HTTP cookie objects provided in the request. | | |||
| `${req.cookies}` | The key value map of HTTP cookie objects included in this request. If there are multiple cookies with the same name, they will be ordered as specified in the Cookie header. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it the Set-Cookie
header?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Cookie
since that's the one used by clients in requests, whereas Set-Cookie
is used by servers in responses
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup I'm losin it