]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
YAPJBUJ.
authorVictor J. Orlikowski <orlikowski@apache.org>
Wed, 23 May 2001 06:43:46 +0000 (06:43 +0000)
committerVictor J. Orlikowski <orlikowski@apache.org>
Wed, 23 May 2001 06:43:46 +0000 (06:43 +0000)
(Yet Another Proxy Janitor Botched-Up Job).
Need to be looking for APR_SUCCESS here, not HTTP_OK.
Obtained from: Justin Erenkrantz

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89213 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_connect.c
modules/proxy/proxy_http.c

index f821b133f578d8e0f47b273e981112954fc8cfb2..e238c66fdc26d7b420010360dd2eb1a6c6d64f04 100644 (file)
@@ -155,7 +155,7 @@ int ap_proxy_connect_handler(request_rec *r, proxy_server_conf *conf,
      */
 
     /* we break the URL into host, port, uri */
-    if (HTTP_OK != apr_uri_parse_hostinfo_components(p, url, &uri)) {
+    if (APR_SUCCESS != apr_uri_parse_hostinfo_components(p, url, &uri)) {
        return ap_proxyerror(r, HTTP_BAD_REQUEST,
                             apr_pstrcat(p, "URI cannot be parsed: ", url, NULL));
     }
index 286a2bfe1d5d1b4f72d3e785755dfe2f459b7921..c34af9c9ac81d8e348b6fac9c70a3b8455bb4a67 100644 (file)
@@ -252,7 +252,7 @@ int ap_proxy_http_handler(request_rec *r, proxy_server_conf *conf,
      */
 
     /* we break the URL into host, port, uri */
-    if (HTTP_OK != apr_uri_parse_components(p, url, &uri)) {
+    if (APR_SUCCESS != apr_uri_parse_components(p, url, &uri)) {
        return ap_proxyerror(r, HTTP_BAD_REQUEST,
                             apr_pstrcat(p,"URI cannot be parsed: ", url, NULL));
     }