jshttp / type-is

Infer the content-type of a request.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support RFC 6839 for matching

dougwilson opened this issue · comments

It would be nice if this module supported matching according to RFC 6839 (i.e. +json should match application/vnd+json).

Note: this would just accept to match like +json and not necessarily allow application/json to match application/my.vnd+json, because I'm not sure how that would mess with peoples things.

@jonathanong any thoughts on this? Seems people are using these suffixes more these days.

+1 since it's just another feature. seems useful and it won't break backwards compat