Permalink
Browse files

Fixed to work with the most recent version again

The http client request API had changed.
  • Loading branch information...
1 parent f3e886f commit ef8be5ab5a8cc2015176448bfa14ff4885432115 @felixge committed Jan 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 module/node-couch.js
View
@@ -55,7 +55,7 @@ function _interact(verb, path, successStatus, options, port, host) {
verb = "post";
}
var requestBody = toJSON(options.body);
- request = client[verb](requestPath, [["Content-Length", requestBody.length], ["Content-Type", "application/json"]]);
+ request = client.request(verb.toUpperCase(), requestPath, {"Content-Length": requestBody.length, "Content-Type": "application/json"});
request.sendBody(requestBody, "utf8");
} else {
request = client[verb](requestPath);

0 comments on commit ef8be5a

Please sign in to comment.