regression test for duplicate hsts

This commit is contained in:
Elvin Efendi 2019-12-11 13:36:51 -05:00
parent d5e197c3e2
commit 49ba53b7b6
2 changed files with 18 additions and 0 deletions

View file

@ -127,6 +127,12 @@ Request Body:
location / {
lua_need_request_body on;
header_filter_by_lua_block {
if ngx.var.arg_hsts == "true" then
ngx.header["Strict-Transport-Security"] = "max-age=3600; preload"
end
}
content_by_lua_block {
ngx.header["Server"] = "echoserver"