heroku/kensa — pull request #36 by holic (2012-10-02 06:17:22+00:00)
Title: Fixes invalid JSON request body

I am using Kensa with Node.js and Express. With the latest Express/Connect, I am unable to add a global bodyParser, e.g.

```
app.configure(function() {
app.use(express.bodyParser());
})
```

This is because the test suite's `DELETE` requests use a `Content-Type: application/json` header and no body. Express (and ultimate Connect) sees this `Content-Type` request header and attempts to parse with `JSON.parse` which fails with an empty string.

The current [kensa-create-node](https://github.com/heroku/kensa-create-node) bypasses this issue by adding the `express.bodyParser()` middleware to just `POST` and `PUT` routes. Not an ideal solution for a large project with a few pieces of middleware per route.

This pull request should resolve the issue, though I am unsure of how the `DELETE` request is implemented in Heroku's addon provisioning itself.