mikeal/request — Issue #190: head() must not provide body
Author: johnnywengluu
Created: 2012-02-25 08:17:12+00:00
State: open

I get a strange error message:

Error: HTTP HEAD requests MUST NOT include a request body.

The issue is that I haven't provided a body in my head request:

request.head(apiInfo['x-storage-url'] + '/' + name, {
headers: {
'X-Auth-Token': apiInfo['x-auth-token'],
'Accept': 'application/json'
}
}, function (err, res) {

Why do I get this error?