Skip to content
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

Merged
merged 6 commits into from
Jul 22, 2024
Merged

cookie and port variables fixes #850

merged 6 commits into from
Jul 22, 2024

Conversation

benjaminchan
Copy link
Contributor

@benjaminchan benjaminchan commented Jul 17, 2024

  • 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

Copy link

vercel bot commented Jul 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ngrok-docs ✅ Ready (Inspect) Visit Preview Jul 18, 2024 5:31pm

@benjaminchan benjaminchan marked this pull request as ready for review July 17, 2024 03:52
@@ -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. |
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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

@benjaminchan benjaminchan merged commit 1babfd0 into main Jul 22, 2024
3 checks passed
@benjaminchan benjaminchan deleted the ben/cookie-port branch July 22, 2024 21:35
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.

2 participants