]> granicus.if.org Git - apache/commitdiff
Minor nit: why make the logic more complex than it needs to
authorJim Jagielski <jim@apache.org>
Mon, 28 Aug 2006 17:57:24 +0000 (17:57 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 28 Aug 2006 17:57:24 +0000 (17:57 +0000)
be ? :)

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

modules/proxy/mod_proxy_http.c

index 5e4085aae87fead262c06ed3616dc07e459e05c4..3c118b171f9b70efd3bc30b7945ec793df921d80 100644 (file)
@@ -1372,7 +1372,7 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
          * ProxyPassReverse/etc from here to ap_proxy_read_headers
          */
 
-        if ((r->status == 401) && (conf->error_override != 0)) {
+        if ((r->status == 401) && (conf->error_override)) {
             const char *buf;
             const char *wa = "WWW-Authenticate";
             if ((buf = apr_table_get(r->headers_out, wa))) {
@@ -1431,7 +1431,7 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
              * if we are overriding the errors, we can't put the content
              * of the page into the brigade
              */
-            if (conf->error_override == 0 || ap_is_HTTP_SUCCESS(r->status)) {
+            if (!conf->error_override || ap_is_HTTP_SUCCESS(r->status)) {
                 /* read the body, pass it to the output filters */
                 apr_read_type_e mode = APR_NONBLOCK_READ;
                 int finish = FALSE;