Handle head requests.