-
Notifications
You must be signed in to change notification settings - Fork 27
Repeated header keys overwrites old values #41
Comments
I could probably provide a fix for this, but I am not sure what the preferred solution would be. I think making |
Yeah, I am afraid this is not possible in this version. |
This is probably an equivalent of |
That should parse okay. The issue is that you can't guarantee that the remote end will format list fields like that. Maybe it makes sense to combine the headers, ie rejig the code to produce this instead:
It doesn't round-trip exactly, but it already doesn't round-trip the order of the headers. Somebody more familiar with the spec might want to doublecheck that this is reasonable. I am mostly going off of this: http://stackoverflow.com/questions/4371328/are-duplicate-http-response-headers-acceptable |
For example:
prints:
Note that only the second value for x-baz is available.
The text was updated successfully, but these errors were encountered: