Fix responses to HEAD requests and don't overwrite Content-Length.