-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
Only the last value of a given multi-valued response header is saved. For example:
Set-Cookie: first cookie
Set-Cookie: second cookie
only the second cookie will be assigned. This is done by the following code:
_m = line.match(_hre);
if (_m) {
_h[_m[1]] = _m[3];
}
it should probably be something like:
_m = line.match(_hre);
if (_m) {
_h[_m[1]] = _h[_m[1]] || [];
_h[_m[1]].push(_m[3]);
}
and headers will be multi-valued
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels