Comparing version 0.0.1 to 0.0.2
@@ -28,2 +28,10 @@ "use strict"; | ||
exports.delete = function (req, res) { | ||
var p = parse(req.url), | ||
code = ((req.method === 'DELETE') ? 200 : 403); | ||
res.writeHead(code, headers); | ||
res.end(p.query || ''); | ||
}; | ||
var post = function (method, req, res) { | ||
@@ -79,5 +87,1 @@ var p = parse(req.url), | ||
exports.delete = function (req, res) { | ||
post('DELETE', req, res); | ||
}; | ||
@@ -5,3 +5,3 @@ { | ||
"author": "Dav Glass <davglass@gmail.com>", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ }, |
@@ -196,4 +196,3 @@ var vows = require('vows'), | ||
method: 'DELETE', | ||
path: '/foo/bar/baz/echo/delete', | ||
body: 'foo=bar' | ||
path: '/foo/bar/baz/echo/delete?foo=bar' | ||
}, this.callback); | ||
@@ -210,4 +209,3 @@ }, | ||
method: 'GET', | ||
path: '/foo/bar/baz/echo/delete', | ||
body: 'foo=bar' | ||
path: '/foo/bar/baz/echo/delete?foo=bar' | ||
}, this.callback); | ||
@@ -214,0 +212,0 @@ }, |
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
14685
363