From d5663e93b22f95eef38138df60283421f80e16f4 Mon Sep 17 00:00:00 2001 From: Alexis Gavoty Date: Mon, 21 Apr 2014 21:00:42 +0200 Subject: [PATCH] [enh] default_type text/html :) --- access.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/access.lua b/access.lua index c19dcff..5237d63 100644 --- a/access.lua +++ b/access.lua @@ -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