Upstream: skip empty cache headers.

Notably this fixes HTTP_IF_MODIFIED_SINCE which was always sent with
cache enabled in fastcgi/scgi/uwsgi after 43ccaf8e8728.
This commit is contained in:
Maxim Dounin 2013-11-29 17:23:38 +04:00
parent 067c1d2a4f
commit 3dec2b131c
3 changed files with 3 additions and 3 deletions

View 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:

View 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:

View 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: