Skip to content
Browse files

0.1.0 - PATCH verb

  • Loading branch information...
1 parent c4a2820 commit 0e3d448c8bf9c8ca7aa2a4499e72418d1360bf8b @tim-smart committed May 25, 2011
Showing with 3 additions and 5 deletions.
  1. +2 −4 index.js
  2. +1 −1 package.json
View
6 index.js
@@ -120,9 +120,7 @@ Client.prototype._request = function (method, options, callback) {
} else if ('form' === options.type) {
options.headers['Content-Type'] = 'application/x-www-form-urlencoded';
}
- } else if ('DELETE' === method ||
- 'PUT' === method ||
- 'POST' === method) {
+ } else if ('GET' !== method) {
options.headers['Content-Length'] = '0';
}
@@ -182,7 +180,7 @@ Client.prototype._request = function (method, options, callback) {
return request;
};
-['GET', 'POST', 'PUT', 'DELETE'].forEach(function (verb) {
+['GET', 'POST', 'PUT', 'DELETE', 'PATCH'].forEach(function (verb) {
var lower_verb = verb.toLowerCase();
/**
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "nest",
- "version": "0.0.4",
+ "version": "0.1.0",
"description": "A Node HTTP client aimed at REST API's.",
"repository": {
"type": "git",

0 comments on commit 0e3d448

Please sign in to comment.
Something went wrong with that request. Please try again.