accept-webp
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -24,3 +24,4 @@ /*! | ||
return function(req, res, next) { | ||
if (req.method.toUpperCase() !== 'GET') {next(); return;} | ||
var method = req.method.toUpperCase(); | ||
if (method !== 'GET' && method !== 'HEAD') {next(); return;} | ||
var pathname = urlParse(req.url).pathname; | ||
@@ -27,0 +28,0 @@ var extpos = pathname.lastIndexOf('.'); |
{ | ||
"name": "accept-webp", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Connect/Express middleware for serving webp images when support is detected", | ||
@@ -5,0 +5,0 @@ "main": "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
5625
44