Skip to content

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

Closed

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.

Activity

  1. self-assigned this
    on Mar 7, 2016
  2. added this to the 1.7.0 milestone on Mar 7, 2016
  3. lock commented on Aug 30, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  4. locked and limited conversation to collaborators on Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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