diff src/http/modules/ngx_http_fastcgi_module.c @ 2661:8ace9dee8824

merge fastcgi_cache_key
author Igor Sysoev <igor@sysoev.ru>
date Thu, 02 Apr 2009 13:48:54 +0000
parents 4ed2fa197a4a
children d5896f6608e8
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c
+++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -2064,6 +2064,10 @@ ngx_http_fastcgi_merge_loc_conf(ngx_conf
     ngx_conf_merge_ptr_value(conf->upstream.cache_valid,
                              prev->upstream.cache_valid, NULL);
 
+    if (conf->cache_key.value.data == NULL) {
+        conf->cache_key = prev->cache_key;
+    }
+
 #endif
 
     ngx_conf_merge_value(conf->upstream.pass_request_headers,