Fixed bug in http_parse_headers and pipe