Also work for head requests

According to spec headers for GET and HEAD request must be the same.