]> git.kaiwu.me - nginx.git/commitdiff
Upstream: skip empty cache headers.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Nov 2013 13:23:38 +0000 (17:23 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Nov 2013 13:23:38 +0000 (17:23 +0400)
Notably this fixes HTTP_IF_MODIFIED_SINCE which was always sent with
cache enabled in fastcgi/scgi/uwsgi after 43ccaf8e8728.

src/http/modules/ngx_http_fastcgi_module.c
src/http/modules/ngx_http_scgi_module.c
src/http/modules/ngx_http_uwsgi_module.c

index 51672e227159997251d6705a91d5a17dbdbf4c3a..4cbe51c61c313b37bd3028194ff4b80a6ee42f60 100644 (file)
@@ -2769,7 +2769,7 @@ ngx_http_fastcgi_merge_params(ngx_conf_t *cf,
 
             s->key = h->key;
             s->value = h->value;
-            s->skip_empty = 0;
+            s->skip_empty = 1;
 
         next:
 
index 9163c6b3c2422e4996cb9084297433648bc934b9..d396b27c84e523bf92888c8e4fb5d4157d0886b1 100644 (file)
@@ -1506,7 +1506,7 @@ ngx_http_scgi_merge_params(ngx_conf_t *cf, ngx_http_scgi_loc_conf_t *conf,
 
             s->key = h->key;
             s->value = h->value;
-            s->skip_empty = 0;
+            s->skip_empty = 1;
 
         next:
 
index 9c5d7621330be6dff57a7ce08e19e3a19b182cb5..c19c7c7258269a68198179a386c790c6d5ac9138 100644 (file)
@@ -1548,7 +1548,7 @@ ngx_http_uwsgi_merge_params(ngx_conf_t *cf, ngx_http_uwsgi_loc_conf_t *conf,
 
             s->key = h->key;
             s->value = h->value;
-            s->skip_empty = 0;
+            s->skip_empty = 1;
 
         next: