google/google-api-nodejs-client — pull request #218 by sebastianseilund (2014-07-23 01:06:17+00:00)
Title: Removed body from GET and DELETE requests

`GET` and `DELETE` requests should not have a body, and their `Content-Type` header should be blank.

The example from the readme:

```javascript
var google = require('googleapis');
var urlshortener = google.urlshortener('v1');

var params = { shortUrl: 'http://goo.gl/xKbRu3' };

urlshortener.url.get(params, function (err, response) {
console.log(response);
});
```

Currently gets a `400 Bad Request`:

```

Error 400 (Bad Request)!!1

400. That’s an error.

Your client has issued a malformed or illegal request. That’s all we know.
```

Setting `json: true` instead of `json: {}` for `GET` and `DELETE` requests in the parameters to `request` fixes the problem.