diff options
author | Igor Sysoev <igor@sysoev.ru> | 2010-06-08 19:33:53 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2010-06-08 19:33:53 +0000 |
commit | f0bf9956dc976ff0c3ec2c36b66afa8208c38b9f (patch) | |
tree | b3e63bfd8415e6de038923f3a25306e9c9579efa /src | |
parent | a17adae0052f022a9fba5fbf52a00d07f2937299 (diff) | |
download | nginx-f0bf9956dc976ff0c3ec2c36b66afa8208c38b9f.tar.gz nginx-f0bf9956dc976ff0c3ec2c36b66afa8208c38b9f.zip |
delete empty Server and Date header used only in proxy mode
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_uwsgi_module.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/http/modules/ngx_http_uwsgi_module.c b/src/http/modules/ngx_http_uwsgi_module.c index 244691d1b..7f31827a1 100644 --- a/src/http/modules/ngx_http_uwsgi_module.c +++ b/src/http/modules/ngx_http_uwsgi_module.c @@ -1199,38 +1199,6 @@ ngx_http_uwsgi_process_header(ngx_http_request_t *r) 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; } |