diff src/http/ngx_http_variables.c @ 7199:6ba68ad8b24c

Basic support of the Link response header.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 08 Feb 2018 09:54:18 +0300
parents 924b6ef942bf
children 0b1eb40de6da
line wrap: on
line diff
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -318,6 +318,9 @@ static ngx_http_variable_t  ngx_http_cor
     { ngx_string("sent_http_cache_control"), NULL, ngx_http_variable_headers,
       offsetof(ngx_http_request_t, headers_out.cache_control), 0, 0 },
 
+    { ngx_string("sent_http_link"), NULL, ngx_http_variable_headers,
+      offsetof(ngx_http_request_t, headers_out.link), 0, 0 },
+
     { ngx_string("limit_rate"), ngx_http_variable_request_set_size,
       ngx_http_variable_request_get_size,
       offsetof(ngx_http_request_t, limit_rate),