| 851 | } |
| 852 | |
| 853 | int http_hdr_req_parse3(HTTP_HDR_REQ *hh, int parse_params, int parse_cookie) |
| 854 | { |
| 855 | if (parse_params) { |
| 856 | hh->flag |= HTTP_HDR_REQ_FLAG_PARSE_PARAMS; |
| 857 | } |
| 858 | if (http_hdr_req_line_parse(hh) < 0) { |
| 859 | return -1; |
| 860 | } |
| 861 | if (parse_cookie) { |
| 862 | hh->flag |= HTTP_HDR_REQ_FLAG_PARSE_COOKIE; |
| 863 | if (http_hdr_req_cookies_parse(hh) < 0) { |
| 864 | return -1; |
| 865 | } |
| 866 | } |
| 867 | return http_hdr_parse(&hh->hdr); |
| 868 | } |
| 869 | |
| 870 | int http_hdr_req_rewrite2(HTTP_HDR_REQ *hh, const char *url) |
| 871 | { |
no test coverage detected
searching dependent graphs…