commit | 3dec2b131cd1787d0022fa6b7d8e7c8997c0a862 | [log] [tgz] |
---|---|---|
author | Maxim Dounin <mdounin@mdounin.ru> | Fri Nov 29 17:23:38 2013 +0400 |
committer | Maxim Dounin <mdounin@mdounin.ru> | Fri Nov 29 17:23:38 2013 +0400 |
tree | 9401620606220c46581e078255f48b9ca0547b70 | |
parent | 067c1d2a4f48cbbaace59733c98007b793719f94 [diff] |
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.
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 51672e2..4cbe51c 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c
@@ -2769,7 +2769,7 @@ s->key = h->key; s->value = h->value; - s->skip_empty = 0; + s->skip_empty = 1; next:
diff --git a/src/http/modules/ngx_http_scgi_module.c b/src/http/modules/ngx_http_scgi_module.c index 9163c6b..d396b27 100644 --- a/src/http/modules/ngx_http_scgi_module.c +++ b/src/http/modules/ngx_http_scgi_module.c
@@ -1506,7 +1506,7 @@ s->key = h->key; s->value = h->value; - s->skip_empty = 0; + s->skip_empty = 1; next:
diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c index 9c5d762..c19c7c7 100644 --- a/src/http/modules/ngx_http_uwsgi_module.c +++ b/src/http/modules/ngx_http_uwsgi_module.c
@@ -1548,7 +1548,7 @@ s->key = h->key; s->value = h->value; - s->skip_empty = 0; + s->skip_empty = 1; next: