extend/cowboy — pull request #316 by josevalim (2012-11-12 09:01:47+00:00)
Title: Wrong Content-Length for HEAD requests

Whenever there is a HEAD requests, Cowboy correctly discards the response Body. However, it still calculates the Content-Length based on the original body, which makes the connection hang waiting on some content.

This pull request fixes the issue and I have verified it on my application.
I am waiting for further guidance on the preferred way to write tests for this bug.

PS: Although I could *run* the tests just fine, I would recommend adding instructions on how to run tests to the `Contributing.md` file.