Do not return a body for HEAD requests

Fix from #39 with test