diff src/http/modules/ngx_http_memcached_module.c @ 1658:13f8dec720b5

proxy_pass variables support
author Igor Sysoev <igor@sysoev.ru>
date Tue, 27 Nov 2007 13:34:13 +0000
parents 31d4278d51c0
children a37fe5ceacc4
line wrap: on
line diff
--- a/src/http/modules/ngx_http_memcached_module.c	Tue Nov 27 12:24:44 2007 +0000
+++ b/src/http/modules/ngx_http_memcached_module.c	Tue Nov 27 13:34:13 2007 +0000
@@ -184,6 +184,8 @@
         return NGX_HTTP_INTERNAL_SERVER_ERROR;
     }
 
+    u->schema = mlcf->upstream.schema;
+
     u->peer.log = r->connection->log;
     u->peer.log_error = NGX_ERROR_ERR;
 #if (NGX_THREADS)
@@ -616,8 +618,6 @@
 
     clcf->handler = ngx_http_memcached_handler;
 
-    lcf->upstream.location = clcf->name;
-
     if (clcf->name.data[clcf->name.len - 1] == '/') {
         clcf->auto_redirect = 1;
     }