@hapi/h2o2
Advanced tools
Comparing version 10.0.3 to 10.0.4
@@ -216,3 +216,3 @@ 'use strict'; | ||
return h.response(res) | ||
const response = h.response(res) | ||
.ttl(ttl) | ||
@@ -222,2 +222,8 @@ .code(res.statusCode) | ||
if (!settings.passThrough && res.statusCode === 405 && 'allow' in res.headers) { | ||
response.header('allow', res.headers.allow); | ||
} | ||
return response; | ||
}; | ||
@@ -224,0 +230,0 @@ }; |
{ | ||
"name": "@hapi/h2o2", | ||
"description": "Proxy handler plugin for hapi.js", | ||
"version": "10.0.3", | ||
"version": "10.0.4", | ||
"repository": "git://github.com/hapijs/h2o2", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
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
21750
459