Correct handling of HEAD requests.