simplify parse_http_req, do not return unused val