You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This comes from RFC 7231, which says: "The type, subtype, and parameter name tokens are case-insensitive."
Code to reproduce the issue:
varrequest={headers: {accept: 'text/html;Charset="utf-8'}};varNegotiator=require('negotiator');varnegotiator=Negotiator(request);varavailableMediaTypes=['text/html;charset=utf-8'];// Expected result below: 'text/html;charset=utf-8'// Actual result: undefinedconsole.log(negotiator.mediaType(availableMediaTypes))
The text was updated successfully, but these errors were encountered:
lol. Gosh darn it :) Eventually when the media part uses content-type module in the next major these issues won't happen any longer :D I appreciate the report immensely!
Absolutely! I found this as I was digging through the RFCs to investigate #35. I'll leave a comment there soon with my findings, and open up other issues as they arise.
This comes from RFC 7231, which says: "The type, subtype, and parameter name tokens are case-insensitive."
Code to reproduce the issue:
The text was updated successfully, but these errors were encountered: