Closed Arkelis closed 2 years ago
Some content types containing a dot are not recognized by the regex. Adding a dot could add support for content types like application/vdn.api+json
application/vdn.api+json
Basically, /^application\/([a-z]+\+)?json($|;)/ becomes /^application\/([a-z.]+\+)?json($|;)/
/^application\/([a-z]+\+)?json($|;)/
/^application\/([a-z.]+\+)?json($|;)/
+1 Hi, this PR solves the issue I am facing. I vote for merging.
Some content types containing a dot are not recognized by the regex. Adding a dot could add support for content types like
application/vdn.api+json
Basically,
/^application\/([a-z]+\+)?json($|;)/
becomes/^application\/([a-z.]+\+)?json($|;)/