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 2021/04/29 13:11:18 UTC

[GitHub] [apisix] spacewander commented on a change in pull request #4152: feat: redirect plugin support regex

spacewander commented on a change in pull request #4152:
URL: https://github.com/apache/apisix/pull/4152#discussion_r623036783



##########
File path: apisix/plugins/redirect.lua
##########
@@ -17,7 +17,9 @@
 local core = require("apisix.core")
 local tab_insert = table.insert
 local tab_concat = table.concat
+local string_format = string.format
 local re_gmatch = ngx.re.gmatch
+local re_sub      = ngx.re.sub

Review comment:
       Please remove extra spaces

##########
File path: t/plugin/redirect.t
##########
@@ -79,7 +79,68 @@ done
 
 
 
-=== TEST 3: add plugin with new uri: /test/add
+=== TEST 3: add plugin with new regex_uri: /test/1 redirect to http://test.com/1

Review comment:
       Please add new test at the bottom of the file




-- 
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