http-methods
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -46,3 +46,3 @@ 'use strict'; | ||
function notFound(req, res, opts, cb) { | ||
var err = new Error('405 Method Not Allowed ' + req.url); | ||
var err = new Error('405 Method Not Allowed'); | ||
err.statusCode = 405; | ||
@@ -49,0 +49,0 @@ |
@@ -23,3 +23,3 @@ 'use strict'; | ||
function notFound(req, res, opts, cb) { | ||
var err = new Error('405 Method Not Allowed ' + req.url); | ||
var err = new Error('405 Method Not Allowed'); | ||
err.statusCode = 405; | ||
@@ -26,0 +26,0 @@ |
{ | ||
"name": "http-methods", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Handle multiple methods elegantly", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -137,3 +137,3 @@ 'use strict'; | ||
t.equal(res.statusCode, 405) | ||
t.equal(body, '405 Method Not Allowed /') | ||
t.equal(body, '405 Method Not Allowed') | ||
@@ -140,0 +140,0 @@ t.end() |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
8644