Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Parse multiple cookies with same name #51

@pi0

Description

@pi0

Describe the feature

Background: jshttp/cookie#60 (found it in an issue reported by @atinux)

Incoming cookie value can have the same name repeated and we pick the first.

We can allow them in two possible ways:

  • { sameKeysPolicy: 'last' } as proposed in Reading duplicated cookies jshttp/cookie#60
  • { multiple: true } that makes return type Record<string, string | string[]>
  • { multiple: true } that concatinates multiple values with ,

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions