]> granicus.if.org Git - apache/commitdiff
Fixed up formatting (removed tabs)
authorIan Holsman <ianh@apache.org>
Tue, 26 Jun 2001 22:46:04 +0000 (22:46 +0000)
committerIan Holsman <ianh@apache.org>
Tue, 26 Jun 2001 22:46:04 +0000 (22:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89425 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c

index adfe60b3bdf9f856382df7b9e779c02db58dc231..982e8c5229e143343081e730b5822d8428c5ba94 100644 (file)
@@ -496,21 +496,21 @@ static const char *
     proxy_server_conf *conf =
     (proxy_server_conf *) ap_get_module_config(s->module_config, &proxy_module);
     struct proxy_alias *new;
-               if (r!=NULL && cmd->path == NULL ) {
-                       new = apr_array_push(conf->aliases);
-                       new->fake = f;
-                       new->real = r;
-               } else if (r==NULL && cmd->path != NULL) {
-                       new = apr_array_push(conf->aliases);
-                       new->fake = cmd->path;
-                       new->real = f;
-               } else {
-                       if ( r== NULL)
-                               return "ProxyPass needs a path when not defined in a location";
-                       else 
-                               return "ProxyPass can not have a path when defined in a location";
-               }
-  
+    if (r!=NULL && cmd->path == NULL ) {
+      new = apr_array_push(conf->aliases);
+      new->fake = f;
+      new->real = r;
+      } else if (r==NULL && cmd->path != NULL) {
+        new = apr_array_push(conf->aliases);
+        new->fake = cmd->path;
+        new->real = f;
+      } else {
+        if ( r== NULL)
+          return "ProxyPass needs a path when not defined in a location";
+        else 
+          return "ProxyPass can not have a path when defined in a location";
+      }
+
      return NULL;
 }
 
@@ -523,21 +523,21 @@ static const char *
 
     conf = (proxy_server_conf *)ap_get_module_config(s->module_config, 
                                                   &proxy_module);
-               if (r!=NULL && cmd->path == NULL ) {
-                       new = apr_array_push(conf->raliases);
-                       new->fake = f;
-                       new->real = r;
-               } else if (r==NULL && cmd->path != NULL) {
-                       new = apr_array_push(conf->raliases);
-                       new->fake = cmd->path;
-                       new->real = f;
-               } else {
-                       if ( r == NULL)
-                               return "ProxyPassReverse needs a path when not defined in a location";
-                       else 
-                               return "ProxyPassReverse can not have a path when defined in a location";
-               }
-  
+    if (r!=NULL && cmd->path == NULL ) {
+      new = apr_array_push(conf->raliases);
+      new->fake = f;
+      new->real = r;
+    } else if (r==NULL && cmd->path != NULL) {
+      new = apr_array_push(conf->raliases);
+      new->fake = cmd->path;
+      new->real = f;
+    } else {
+      if ( r == NULL)
+        return "ProxyPassReverse needs a path when not defined in a location";
+      else 
+        return "ProxyPassReverse can not have a path when defined in a location";
+    }
+    
     return NULL;
 }