Lewisyixin commented on PR #7807:
URL: https://github.com/apache/apisix/pull/7807#issuecomment-1231321288

   > Could you add a test like
   > 
   > 
https://github.com/apache/apisix/blob/cffa4b69f9080707d100fbe856f251054cc8cba4/t/core/json.t#L132
   > 
   > ?
   
   Hi @spacewander  do you mean let me to add this test case result into json.t?
   
   ```
   === TEST 7: json encode with encode_escape_forward_slash(false)
       location /t {
           content_by_lua_block {
               local json = require("cjson.safe")
               local data = json.encode({uri="/api1/apisixtest"})
               ngx.say(data)
   
               json.encode_escape_forward_slash(false)
               local data = json.encode({uri="/api1/apisixtest"})
               ngx.say(data)
           }
       }
   --- response_body
   {"uri":"\/api1\/apisixtest"}
   {"uri":"/api1/apisixtest"}
   ```


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to