httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: httpd-proxy/module-2.0 mod_proxy.c
Date Tue, 26 Jun 2001 22:46:05 GMT
ianh        01/06/26 15:46:05

  Modified:    module-2.0 mod_proxy.c
  Log:
  Fixed up formatting (removed tabs)
  
  Revision  Changes    Path
  1.48      +30 -30    httpd-proxy/module-2.0/mod_proxy.c
  
  Index: mod_proxy.c
  ===================================================================
  RCS file: /home/cvs/httpd-proxy/module-2.0/mod_proxy.c,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- mod_proxy.c	2001/06/26 22:32:49	1.47
  +++ mod_proxy.c	2001/06/26 22:46:04	1.48
  @@ -496,21 +496,21 @@
       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 @@
   
       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;
   }
   
  
  
  

Mime
View raw message