Comparing version 17.3.0 to 17.3.1
@@ -295,3 +295,5 @@ 'use strict'; | ||
Hoek.assert(this.request.method === 'post' || this.request.method === 'put', 'Cannot create resource on GET'); | ||
Hoek.assert(this.request.method === 'post' || | ||
this.request.method === 'put' || | ||
this.request.method === 'patch', 'Cannot return 201 status codes for ' + this.request.method.toUpperCase()); | ||
@@ -298,0 +300,0 @@ this.statusCode = 201; |
@@ -143,3 +143,3 @@ 'use strict'; | ||
const schema = statusSchema || request.route.settings.response.schema; | ||
const schema = statusSchema !== undefined ? statusSchema : request.route.settings.response.schema; | ||
if (schema === null) { | ||
@@ -146,0 +146,0 @@ return; // No rules |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://hapijs.com", | ||
"version": "17.3.0", | ||
"version": "17.3.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168662
4197