Open diversario opened 13 years ago
I came across this as well. I wanted the response status from HEAD requests so I changed line 81 in my copy of lib/couch-client.js to:
if (callback) {
if (options.method === 'HEAD') {
callback(null, response.statusCode);
} else {
callback(null, JSON.parse(body));
}
}
When I try to perform a HEAD request I get this:
Does couch-client support HEAD requests?