Added support for HEAD requests
Merge pull request #1004 from bkase/bug643156

Bug 643156 - Added support for HEAD requests r=@ochameau