Also work for head requests

According to spec headers for GET and HEAD request must be the same.
Merge pull request #34 from Janpot/patch-1

Also work for head requests