tokers commented on a change in pull request #2696:
URL: https://github.com/apache/apisix/pull/2696#discussion_r521023803



##########
File path: t/lib/server.lua
##########
@@ -101,8 +101,15 @@ function _M.uri()
     -- ngx.sleep(1)
     ngx.say("uri: ", ngx.var.uri)
     local headers = ngx.req.get_headers()
-    for k, v in pairs(headers) do
-        ngx.say(k, ": ", v)
+
+    local keys = {}
+    for k, _ in pairs(headers) do

Review comment:
       Just ignore the second dumb variable if you don't need it.
   
   ```lua
   for k in pairs(headers) do
         ......
   end
   ```




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