Skip to content

Commit 157aaa9

Browse files
committed
synchronized with lua-nginx-module #2fb8f12.
feature: added support for the Nginx builtin Link header. This allows for specifying multiple values in the Link header. Thanks bjoe2k4 and tokers for the upstream patch.
1 parent a022885 commit 157aaa9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/http/ngx_http_lua_headers_out.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ static ngx_http_lua_set_header_t ngx_http_lua_set_handlers[] = {
106106
offsetof(ngx_http_headers_out_t, cache_control),
107107
ngx_http_set_builtin_multi_header },
108108

109+
#if defined(nginx_version) && nginx_version >= 1013009
110+
{ ngx_string("Link"),
111+
offsetof(ngx_http_headers_out_t, link),
112+
ngx_http_set_builtin_multi_header },
113+
#endif
114+
109115
{ ngx_null_string, 0, ngx_http_set_header }
110116
};
111117

0 commit comments

Comments
 (0)