Added proper support for HEAD resource requests.