]> granicus.if.org Git - apache/commitdiff
Use what we have. This logic belongs here anyway...
authorJim Jagielski <jim@apache.org>
Tue, 8 Apr 2008 09:25:57 +0000 (09:25 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 8 Apr 2008 09:25:57 +0000 (09:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645807 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c
modules/proxy/proxy_util.c

index 54e8a727499e0dfa28839d2c6597b3247998fc57..67b91a88c07c3f28bd58410827652adde36a36f3 100644 (file)
@@ -1023,13 +1023,7 @@ static int proxy_handler(request_rec *r)
         goto cleanup;
     }
 cleanup:
-    if (balancer) {
-        int post_status = proxy_run_post_request(worker, balancer, r, conf);
-        if (post_status == DECLINED) {
-            post_status = OK; /* no post_request handler available */
-            /* TODO: recycle direct worker */
-        }
-    }
+    ap_proxy_post_request(worker, balancer, r, conf);
 
     proxy_run_request_status(&access_status, r);
 
index 607ca98169a00e1a111fe60a8be39d98321bc6b7..b1d0c918a5742afb94ce788c2617fab33ad7f85c 100644 (file)
@@ -1531,12 +1531,13 @@ PROXY_DECLARE(int) ap_proxy_post_request(proxy_worker *worker,
                                          request_rec *r,
                                          proxy_server_conf *conf)
 {
-    int access_status;
+    int access_status = OK;
     if (balancer) {
         access_status = proxy_run_post_request(worker, balancer, r, conf);
-    }
-    else {
-        access_status = OK;
+        if (access_status == DECLINED) {
+            access_status = OK; /* no post_request handler available */
+            /* TODO: recycle direct worker */
+        }
     }
 
     return access_status;