summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-09-07 11:27:07 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-09-07 11:27:07 +0000
commit6ace74566da2ec313d08012a458aa6dc175c1808 (patch)
tree85fe24f16059ea39ef8478813f910ee9c636fb78
parent80d70e434dd091ee0eae8455b577cc98c3b5dc1f (diff)
downloadnginx-6ace74566da2ec313d08012a458aa6dc175c1808.tar.gz
nginx-6ace74566da2ec313d08012a458aa6dc175c1808.tar.bz2
merge r3038:
process upstream ETag header
-rw-r--r--src/http/ngx_http_upstream.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index a0e7f8206..8c7f9a473 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -161,6 +161,12 @@ ngx_http_upstream_header_t ngx_http_upstream_headers_in[] = {
offsetof(ngx_http_upstream_headers_in_t, last_modified),
ngx_http_upstream_copy_last_modified, 0, 0 },
+ { ngx_string("ETag"),
+ ngx_http_upstream_process_header_line,
+ offsetof(ngx_http_upstream_headers_in_t, etag),
+ ngx_http_upstream_copy_header_line,
+ offsetof(ngx_http_headers_out_t, etag), 0 },
+
{ ngx_string("Server"),
ngx_http_upstream_process_header_line,
offsetof(ngx_http_upstream_headers_in_t, server),