aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_variables.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_variables.c
parentd31d547dba886fcbc3738e649b1667e65170e6e1 (diff)
downloadnginx-8590d9d615d0b83cf076421d1e18c64ca66a1a44.tar.gz
nginx-8590d9d615d0b83cf076421d1e18c64ca66a1a44.zip
Basic support of the Link response header.
Diffstat (limited to 'src/http/ngx_http_variables.c')
-rw-r--r--src/http/ngx_http_variables.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c
index ab82177ca..669600ace 100644
--- 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_core_variables[] = {
{ 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),