regression test for duplicate hsts
This commit is contained in:
parent
d5e197c3e2
commit
49ba53b7b6
2 changed files with 18 additions and 0 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue