You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/07/01 01:59:07 UTC

[GitHub] [incubator-apisix] membphis commented on a change in pull request #1782: fix https://github.com/apache/incubator-apisix/issues/1667

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:
users@infra.apache.org