In the implementation of http module, the headers are parsed into an object where the keys are header names and the values are header values. If there are multiple headers with same name in the response like multiple Set-Cookie headers, only the last header survive. It overwrites the previous headers.
Example:
These headers:
Header-A : content1
Header-B : content2
Header-B : content3
will result in:
{
"Header-A" : "content1",
"Header-B" : "content3"
}
How can I reach the lost headers? If there is not a way, you may also provide the headers as an array next to the current headers object in http module.
In the implementation of http module, the headers are parsed into an object where the keys are header names and the values are header values. If there are multiple headers with same name in the response like multiple
Set-Cookieheaders, only the last header survive. It overwrites the previous headers.Example:
These headers:
will result in:
How can I reach the lost headers? If there is not a way, you may also provide the headers as an array next to the current headers object in http module.