parse the header */
| 779 | |
| 780 | /* parse the header */ |
| 781 | apr_status_t ajp_parse_header(request_rec *r, proxy_dir_conf *conf, |
| 782 | ajp_msg_t *msg) |
| 783 | { |
| 784 | apr_byte_t result; |
| 785 | apr_status_t rc; |
| 786 | |
| 787 | rc = ajp_msg_get_uint8(msg, &result); |
| 788 | if (rc != APR_SUCCESS) { |
| 789 | ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00994) |
| 790 | "ajp_parse_headers: ajp_msg_get_byte failed"); |
| 791 | return rc; |
| 792 | } |
| 793 | if (result != CMD_AJP13_SEND_HEADERS) { |
| 794 | ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00995) |
| 795 | "ajp_parse_headers: wrong type %s (0x%02x) expecting %s (0x%02x)", |
| 796 | ajp_type_str(result), result, |
| 797 | ajp_type_str(CMD_AJP13_SEND_HEADERS), CMD_AJP13_SEND_HEADERS); |
| 798 | return AJP_EBAD_HEADER; |
| 799 | } |
| 800 | return ajp_unmarshal_response(msg, r, conf); |
| 801 | } |
| 802 | |
| 803 | /* parse the body and return data address and length */ |
| 804 | apr_status_t ajp_parse_data(request_rec *r, ajp_msg_t *msg, |
no test coverage detected