Fix header vs http.hasheader (issue #235)