]> granicus.if.org Git - apache/commitdiff
Simplify canon_handler. Blancer can have only a single
authorMladen Turk <mturk@apache.org>
Sat, 9 Apr 2005 16:32:32 +0000 (16:32 +0000)
committerMladen Turk <mturk@apache.org>
Sat, 9 Apr 2005 16:32:32 +0000 (16:32 +0000)
scheme.

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

modules/proxy/mod_proxy_balancer.c

index ad0f8b47c70619f87f911f8dc1565e0c9af89d5d..fd778bca2d4f309825d45668ea6715e8da537239 100644 (file)
@@ -28,12 +28,10 @@ static int proxy_balancer_canon(request_rec *r, char *url)
 {
     char *host, *path, *search;
     const char *err;
-    const char *scheme;
     apr_port_t port = 0;
 
     if (strncasecmp(url, "balancer:", 9) == 0) {
         url += 9;
-        scheme = "balancer";
     }    
     else {
         return DECLINED;
@@ -70,7 +68,7 @@ static int proxy_balancer_canon(request_rec *r, char *url)
     if (path == NULL)
         return HTTP_BAD_REQUEST;
 
-    r->filename = apr_pstrcat(r->pool, "proxy:", scheme, "://", host,
+    r->filename = apr_pstrcat(r->pool, "proxy:balancer://", host,
             "/", path, (search) ? "?" : "", (search) ? search : "", NULL);
     return OK;
 }