Closed AnyhowStep closed 5 years ago
Parameters are only those before the q. https://tools.ietf.org/html/rfc7231#section-5.3.2
I see.
I also noticed there's an optional accept-ext
part that comes after the q
that looks syntactically the same as the parameters
part.
I couldn't find the purpose of accept-ext
in that RFC, though.
It's effectively useless and an historical artifact.
Ah, all right. Thanks!
I was just curious about why
parseMediaType()
doesn't parse parameters after theq
value,https://github.com/jshttp/negotiator/blob/99f418e11907b60e63f0addc09fc596ddc7be5be/lib/mediaType.js#L75-L78