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/11/13 01:23:50 UTC

[GitHub] [apisix] spacewander commented on a change in pull request #2708: fix(http-logger): validate uri

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



##########
File path: t/plugin/http-logger.t
##########
@@ -595,3 +595,43 @@ hello1 world
 --- error_log
 Batch Processor[http logger] failed to process entries: failed to connect to host[127.0.0.1] port[9991] connection refused
 --- wait: 1.5
+
+
+
+=== TEST 16: check uri
+--- config
+    location /t {
+        content_by_lua_block {
+            local plugin = require("apisix.plugins.http-logger")
+            local bad_uris = {
+               "127.0.0.1", 
+               "127.0.0.1:1024", 
+            }
+            for _, bad in ipairs(bad_uris) do

Review comment:
       @juzhiyuan 
   Updated.




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