[enh] default_type text/html :)

This commit is contained in:
Alexis Gavoty 2014-04-21 21:00:42 +02:00
parent baa62e1afe
commit d5663e93b2

View file

@ -589,6 +589,12 @@ end
function pass () function pass ()
delete_redirect_cookie() delete_redirect_cookie()
ngx.req.set_header("Set-Cookie", cookies) 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 return
end end