Open pi0 opened 2 months ago
Background: https://github.com/jshttp/cookie/issues/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' }
{ multiple: true }
Record<string, string | string[]>
,
Describe the feature
Background: https://github.com/jshttp/cookie/issues/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 https://github.com/jshttp/cookie/issues/60{ multiple: true }
that makes return typeRecord<string, string | string[]>
{ multiple: true }
that concatinates multiple values with,