You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should I implement the get_all function in Headers (headers.rs) with the following specification?
Return all values of the `Set-Cookie` header in the `Headers` object with
Returns them as a Result<Vec<String>> type.
Also return an error if the name is not `Set-Cookie`.
Is there an existing issue for this?
What version of
workers-rs
are you using?0.0.18
What version of
wrangler
are you using?0.0.18
Describe the bug
When calling a cloudflare worker in
workers-rs
, theset-cookie
header "folds" and creates a singleset-cookie = cookie1=value1, cookie2=value2
.According to cloudflare docs and the IETF RFC, the set-cookie header should not fold.
We do not have the same behaviour in our javascript workers.
It's a tricky case when looking at the headers interface, but maybe a similar
getAll
interface is needed here?This makes it slightly more tricky to act as a reverse-proxy and forward requests from our worker.
Steps To Reproduce
curl -H "Set-Cookie: cookie1=value1" -H "Set-Cookie: cookie2=value2" http://0.0.0.0:8787
set-cookie = cookie1=value1, cookie2=value2
The text was updated successfully, but these errors were encountered: