]> granicus.if.org Git - apache/commitdiff
Use protocol handler defines instead fixed numbers.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 11 Aug 2004 20:44:08 +0000 (20:44 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 11 Aug 2004 20:44:08 +0000 (20:44 +0000)
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

modules/proxy/proxy_ajp.c

index f150764e1db327935f41a4f97a14ad20f546bff8..479e19d45417353f85163819781b28a4fc7dc927 100644 (file)
@@ -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;