aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2018-02-08 09:54:18 +0300
committerRuslan Ermilov <ru@nginx.com>2018-02-08 09:54:18 +0300
commit8590d9d615d0b83cf076421d1e18c64ca66a1a44 (patch)
tree2575b8835580721af8ab841c09d7480d30132057 /src/http/ngx_http_upstream.c
parentd31d547dba886fcbc3738e649b1667e65170e6e1 (diff)
downloadnginx-8590d9d615d0b83cf076421d1e18c64ca66a1a44.tar.gz
nginx-8590d9d615d0b83cf076421d1e18c64ca66a1a44.zip
Basic support of the Link response header.
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r--src/http/ngx_http_upstream.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 224499bb3..5ddadf0e2 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -284,6 +284,11 @@ static ngx_http_upstream_header_t ngx_http_upstream_headers_in[] = {
ngx_http_upstream_process_vary, 0,
ngx_http_upstream_copy_header_line, 0, 0 },
+ { ngx_string("Link"),
+ ngx_http_upstream_ignore_header_line, 0,
+ ngx_http_upstream_copy_multi_header_lines,
+ offsetof(ngx_http_headers_out_t, link), 0 },
+
{ ngx_string("X-Accel-Expires"),
ngx_http_upstream_process_accel_expires, 0,
ngx_http_upstream_copy_header_line, 0, 0 },