@mashroom/mashroom-utils
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -15,5 +15,5 @@ "use strict"; | ||
var isHtmlRequest = function isHtmlRequest(req) { | ||
return !req.xhr && /html/i.test(req.headers.accept); | ||
return (req.method === 'GET' || req.method === 'POST') && !req.xhr && /html/i.test(req.headers.accept); | ||
}; | ||
exports.isHtmlRequest = isHtmlRequest; |
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"main": "lib", | ||
@@ -10,0 +10,0 @@ "files": [ |
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
46547