Mercurial > hg > nginx
changeset 3611:395ae91f7a5a
delete empty Server and Date header used only in proxy mode
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 08 Jun 2010 19:33:53 +0000 |
parents | edcc271f7c4c |
children | f9a96545fee7 |
files | src/http/modules/ngx_http_uwsgi_module.c |
diffstat | 1 files changed, 0 insertions(+), 32 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_uwsgi_module.c Tue Jun 08 16:15:47 2010 +0000 +++ b/src/http/modules/ngx_http_uwsgi_module.c Tue Jun 08 19:33:53 2010 +0000 @@ -1199,38 +1199,6 @@ ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "http uwsgi header done"); - /* - * if no "Server" and "Date" in header line, - * then add the special empty headers - */ - - if (r->upstream->headers_in.server == NULL) { - h = ngx_list_push(&r->upstream->headers_in.headers); - if (h == NULL) { - return NGX_ERROR; - } - - h->hash = ngx_hash(ngx_hash(ngx_hash(ngx_hash( - ngx_hash ('s', 'e'), 'r'), 'v'), 'e'), 'r'); - - ngx_str_set(&h->key, "Server"); - ngx_str_null(&h->value); - h->lowcase_key = (u_char *) "server"; - } - - if (r->upstream->headers_in.date == NULL) { - h = ngx_list_push(&r->upstream->headers_in.headers); - if (h == NULL) { - return NGX_ERROR; - } - - h->hash = ngx_hash(ngx_hash(ngx_hash('d', 'a'), 't'), 'e'); - - ngx_str_set(&h->key, "Date"); - ngx_str_null(&h->value); - h->lowcase_key = (u_char *) "date"; - } - return NGX_OK; }