update httpd_parse_req() and httpd_resp_head()