membphis commented on a change in pull request #1782:
URL: https://github.com/apache/incubator-apisix/pull/1782#discussion_r448073576



##########
File path: apisix/plugin.lua
##########
@@ -237,7 +237,7 @@ function _M.filter(user_route, plugins)
     local user_plugin_conf = user_route.value.plugins
     if user_plugin_conf == nil or
        core.table.nkeys(user_plugin_conf) == 0 then
-        if local_conf and local_conf.apisix.enable_debug then
+        if local_conf and local_conf.apisix.enable_debug and not 
ngx.headers_sent then

Review comment:
       
https://github.com/apache/incubator-apisix/issues/1667#issuecomment-652140810




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to