-
Notifications
You must be signed in to change notification settings - Fork 337
[dev] handle multiple value headers #1412
Comments
further update - it looks like this is only a problem for But
This means that |
Is this a problem again? I'm using the |
UPDATE: When trying the |
I'm unable to get
wrangler dev
to return multipleSet-Cookie
headers in a worker response. I've tried in both of the following ways:explicitly appending them
passing them in the options object of the response
I've so far only been trying to get this to work using
wrangler dev
... perhaps it's a wider Workers issue/limitation? Perhaps I'm missing something obvious here?Originally posted by @yet-another-dev in #1047 (comment)
The issue here is that we do not properly handle response headers that have multiple values. We iterate over them all and end up overwriting each response header with the following one, which is why @yet-another-dev only sees the last cookie header in the response
The text was updated successfully, but these errors were encountered: