membphis commented on issue #2257:
URL: https://github.com/apache/apisix/issues/2257#issuecomment-698096059


   the patch
   
   ```patch
   diff --git a/apisix/plugins/redirect.lua b/apisix/plugins/redirect.lua
   index 64819735..eb386dea 100644
   --- a/apisix/plugins/redirect.lua
   +++ b/apisix/plugins/redirect.lua
   @@ -133,7 +133,7 @@ function _M.rewrite(conf, ctx)
            -- TODO: add test case
            -- PR: https://github.com/apache/apisix/pull/1958
            uri = "https://$host$request_uri";
   -        ret_code = 301
   +        ret_code = ret_code or 301
        end
   
        if uri and ret_code then


----------------------------------------------------------------
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:
[email protected]


Reply via email to