]> git.kaiwu.me - nginx.git/commitdiff
*) make code consistent to fastcgi, etc
authorIgor Sysoev <igor@sysoev.ru>
Tue, 3 Aug 2010 12:59:14 +0000 (12:59 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 3 Aug 2010 12:59:14 +0000 (12:59 +0000)
*) remove STUB comment

src/http/modules/ngx_http_proxy_module.c

index e311bb9d37f6b839ac1a9a630f0f0f618b89414c..325a1a00b739ee2c991669d852b2f6b8f61cf494 100644 (file)
@@ -1986,12 +1986,6 @@ ngx_http_proxy_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
         }
     }
 
-    /* STUB */
-    if (prev->proxy_lengths) {
-        conf->proxy_lengths = prev->proxy_lengths;
-        conf->proxy_values = prev->proxy_values;
-    }
-
 #if (NGX_HTTP_SSL)
     if (conf->upstream.ssl == NULL) {
         conf->upstream.ssl = prev->upstream.ssl;
@@ -2023,6 +2017,11 @@ ngx_http_proxy_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
         conf->vars = prev->vars;
     }
 
+    if (conf->proxy_lengths == NULL) {
+        conf->proxy_lengths = prev->proxy_lengths;
+        conf->proxy_values = prev->proxy_values;
+    }
+
     if (conf->upstream.upstream || conf->proxy_lengths) {
         clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);
         if (clcf->handler == NULL && clcf->lmt_excpt) {