fixed HEAD request, print headers in logger