Comparing version 1.1.0 to 1.1.1
@@ -23,3 +23,3 @@ /** | ||
*/ | ||
if (req.body) { | ||
if (req.method === 'POST' || req.method === 'PUT' || req.method === 'PATCH') { | ||
if (!~resContentTypes.indexOf('application/vnd.api+json')) { | ||
@@ -26,0 +26,0 @@ return next(httpError(415)) |
{ | ||
"name": "njv", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "jsonapi validator middleware for node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
7160