mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[enh] default_type text/html :)
This commit is contained in:
parent
baa62e1afe
commit
d5663e93b2
1 changed files with 6 additions and 0 deletions
|
@ -589,6 +589,12 @@ end
|
|||
function pass ()
|
||||
delete_redirect_cookie()
|
||||
ngx.req.set_header("Set-Cookie", cookies)
|
||||
if string.ends(ngx.var.uri, "/")
|
||||
or string.ends(ngx.var.uri, ".html")
|
||||
or string.ends(ngx.var.uri, ".htm")
|
||||
then
|
||||
ngx.header["Content-Type"] = "text/html"
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue