]> granicus.if.org Git - apache/commitdiff
Correct some indenting
authorGraham Leggett <minfrin@apache.org>
Tue, 15 Apr 2003 16:33:56 +0000 (16:33 +0000)
committerGraham Leggett <minfrin@apache.org>
Tue, 15 Apr 2003 16:33:56 +0000 (16:33 +0000)
PR:
Obtained from:
Submitted by:
Reviewed by:

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

modules/proxy/proxy_http.c

index 000fd841a0920c935f420867b1762ffa669ca727..192acf5a86775ce5825505a6200b35795a7a8144 100644 (file)
@@ -974,16 +974,16 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
             }
         }
 
-      if ((r->status == 401) && (conf->error_override != 0)) {
-          const char *buf;
-          const char *wa = "WWW-Authenticate";
-          if ((buf = apr_table_get(r->headers_out, wa))) {
-              apr_table_set(r->err_headers_out, wa, buf);
-          } else {
-              ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
-                           "proxy: origin server sent 401 without w-a header");
-          }
-      }
+        if ((r->status == 401) && (conf->error_override != 0)) {
+            const char *buf;
+            const char *wa = "WWW-Authenticate";
+            if ((buf = apr_table_get(r->headers_out, wa))) {
+                apr_table_set(r->err_headers_out, wa, buf);
+            } else {
+                ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
+                             "proxy: origin server sent 401 without w-a header");
+            }
+        }
 
         r->sent_bodyct = 1;
         /* Is it an HTTP/0.9 response? If so, send the extra data */
@@ -1087,7 +1087,7 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
              */
             int status = r->status;
             r->status = HTTP_OK;
-          ap_discard_request_body(rp);
+            ap_discard_request_body(rp);
             return status;
         }
     } else