diff options
author | Jim Jagielski <jim@apache.org> | 2008-04-08 11:25:57 +0200 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2008-04-08 11:25:57 +0200 |
commit | 3cb64b009a7636d04c812218d9a25fb35d54b4d4 (patch) | |
tree | 2651e9c786fd4e5bc2f1e00d6f84f9f22c898943 /modules/proxy/proxy_util.c | |
parent | Follow on updates from r645667 (diff) | |
download | apache2-3cb64b009a7636d04c812218d9a25fb35d54b4d4.tar.xz apache2-3cb64b009a7636d04c812218d9a25fb35d54b4d4.zip |
Use what we have. This logic belongs here anyway...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@645807 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy/proxy_util.c')
-rw-r--r-- | modules/proxy/proxy_util.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index 607ca98169..b1d0c918a5 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -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; |