Fix handling HEAD requests and make it easier to send a body.