Skip to content
This repository was archived by the owner on Jul 6, 2018. It is now read-only.
This repository was archived by the owner on Jul 6, 2018. It is now read-only.

http2: cookies #114

Description

@sebdeckers

The set-cookie header may appear multiple times. Its values should be handled as an Array in all response header methods.

Activity

  1. jasnell commented on May 15, 2017

    @jasnell
    Member

    heh... great minds think alike... #115
    I was just working on this :-)

  2. jasnell commented on May 15, 2017

    @jasnell
    Member

    well... same area. at least :-) .. the mapToHeaders function was not handling multi-valued headers appropriately. This should fix that.

  3. sebdeckers commented on May 15, 2017

    @sebdeckers
    ContributorAuthor

    @jasnell Hah, awesome!

    If the HTTP/2 API supports duplicate headers for any header, the compatibility layer may need to mimic the old behaviour described in message.headers:

    Duplicates in raw headers are handled in the following ways, depending on the header name:

    • Duplicates of age, authorization, content-length, content-type, etag, expires, from, host, if-modified-since, if-unmodified-since, last-modified, location, max-forwards, proxy-authorization, referer, retry-after, or user-agent are discarded.
    • set-cookie is always an array. Duplicates are added to the array.
    • For all other headers, the values are joined together with ', '.
  4. jasnell commented on May 15, 2017

    @jasnell
    Member

    yeah, for the first point, we may need to enforce that at a lower level... not just in the compat layer.

  5. sebdeckers commented on May 27, 2017

    @sebdeckers
    ContributorAuthor

    Fixed in #115 (related: #129)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions