From: William A. Rowe Jr Date: Wed, 11 Aug 2004 20:44:08 +0000 (+0000) Subject: Use protocol handler defines instead fixed numbers. X-Git-Tag: post_ajp_proxy~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d4e9e7eca694172cee298390f10b610f949fdad;p=apache Use protocol handler defines instead fixed numbers. Makes more sense what's happening. Submitted by: mturk git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104560 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_ajp.c b/modules/proxy/proxy_ajp.c index f150764e1d..479e19d454 100644 --- a/modules/proxy/proxy_ajp.c +++ b/modules/proxy/proxy_ajp.c @@ -422,8 +422,8 @@ apr_status_t ap_proxy_ajp_request(apr_pool_t *p, request_rec *r, } /* parse the reponse */ - result = ajp_parse_type(r,p_conn->data); - if (result == 4) { + result = ajp_parse_type(r, p_conn->data); + if (result == CMD_AJP13_SEND_HEADERS) { ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server, "proxy: got response from %pI (%s)", p_conn->addr, p_conn->name); @@ -464,14 +464,14 @@ apr_status_t ap_proxy_ajp_process_response(apr_pool_t * p, request_rec *r, type = ajp_parse_type(r, p_conn->data); status = APR_SUCCESS; - while (type != 5) { - if (type == 4) { + while (type != CMD_AJP13_END_RESPONSE) { + if (type == CMD_AJP13_SEND_HEADERS) { /* AJP13_SEND_HEADERS: process them */ status = ajp_parse_headers(r, p_conn->data); if (status != APR_SUCCESS) { break; } - } else if (type == 3) { + } else if (type == CMD_AJP13_SEND_BODY_CHUNK) { /* AJP13_SEND_BODY_CHUNK: piece of data */ apr_uint16_t size; char *buff;