Fix HEAD request handling.