]> git.kaiwu.me - nginx.git/commit
Core: relative redirects (closes #1000).
authorRuslan Ermilov <ru@nginx.com>
Wed, 21 Dec 2016 20:10:51 +0000 (23:10 +0300)
committerRuslan Ermilov <ru@nginx.com>
Wed, 21 Dec 2016 20:10:51 +0000 (23:10 +0300)
commitdd70e741970c841a1555911f6468b39870c0607b
treeeaefda6b80598c554414e6b147e93c6ecdbf31c5
parentd1f524d0b3e013f23bb9456aa4f2c35916934c27
Core: relative redirects (closes #1000).

The current version of HTTP/1.1 standard allows relative references in
redirects (https://tools.ietf.org/html/rfc7231#section-7.1.2).

Allow this form for redirects generated by nginx by introducing the new
directive absolute_redirect.
src/http/ngx_http_core_module.c
src/http/ngx_http_core_module.h
src/http/ngx_http_header_filter_module.c
src/http/v2/ngx_http_v2_filter_module.c