We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If a cookie name contains a dot, request.cookies.all is nil.
request.cookies.all
nil
import Vapor func routes(_ app: Application) throws { app.get("") { request -> Response in let response = Response() response.cookies["cookie_one"] = HTTPCookies.Value(string: "Cookie 1") response.cookies["cookie.two"] = HTTPCookies.Value(string: "Cookie 2") for cookie in request.cookies.all { print(cookie.value.string) } return response } }
On the next request it should print:
[ INFO ] GET / Cookie 1 Cookie 2
[ INFO ] GET /
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
If a cookie name contains a dot,
request.cookies.all
isnil
.Steps to reproduce
Expected behavior
On the next request it should print:
Actual behavior
Environment
The text was updated successfully, but these errors were encountered: