fix hsts-preload not work for redirects (from/to www)
Signed-off-by: joey <zchengjoey@gmail.com>
This commit is contained in:
parent
b93ccdf7b6
commit
974abac368
1 changed files with 5 additions and 0 deletions
|
@ -632,6 +632,11 @@ http {
|
|||
}
|
||||
{{ end }}
|
||||
|
||||
header_filter_by_lua_block {
|
||||
lua_ingress.header()
|
||||
plugins.run()
|
||||
}
|
||||
|
||||
set_by_lua_block $redirect_to {
|
||||
local request_uri = ngx.var.request_uri
|
||||
if string.sub(request_uri, -1) == "/" then
|
||||
|
|
Loading…
Reference in a new issue