feat: match on lowercase content-type
This commit is contained in:
parent
d1e40fa27f
commit
f6c22a2c96
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ if ngx.ctx.jasima_config.rewrite_disable then
|
|||
end
|
||||
|
||||
if ngx.header["Content-Type"] then
|
||||
local content_type = ngx.header["Content-Type"]
|
||||
local content_type = ngx.header["Content-Type"]:lower()
|
||||
if content_type:find("text/html") or
|
||||
content_type:find("text/css") or
|
||||
content_type:find("text/xml") or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue