Skip to content

http module does not support multiple headers with same name #1695

@erkanarslan

Description

@erkanarslan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions