Improved support for http HEAD