sshniro removed a comment on issue #1396: WIP: HTTP logger for APISIX 
URL: https://github.com/apache/incubator-apisix/pull/1396#issuecomment-613225059
 
 
   Hi @membphis  I'm using openresty `socket.url` to decode the URL but getting 
this message in the test case.
   
   ```lua
   local url = require "socket.url"
   local function test(conf){
   local url_decoded = socket.url.parse(conf.uri)
   -- host, port etc 
   }
   ```
   
   ```
    WARNING: TEST 1: sanity - 2020/04/14 06:48:30 [warn] 23993#23993: *16 [lua] 
_G write guard:12: writing a global lua variable ('socket') which may lead to 
race conditions between concurrent requests, so prefer the use of 'local' 
variables
   ```
   But I'm using a local variable here, In this case, shall I use this library 
to decode the URL? : https://github.com/golgote/neturl or are there any inbuilt 
methods to parse the URL
   

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


With regards,
Apache Git Services

Reply via email to