Added support for HEAD method