I make the code like it
if ngx.req.get_method()=="GET" and ngx.status == ngx.HTTP_OK then
if string.find(ngx.header.content_type,"text/html") then
ngx.ctx.can_filter = 1 -- mark can filter for the body_filter
end
end
but when i use the ngx.ctx.can_filter = 1 ,
may change the content of the http header (I think so,because i comment the code to take this conclusion)
this make some site not be proxyed correct.
I rellay don't kwon why this happen,it's anybody take the same case like me?
or may it the bug that has been corrected?