ouweijun1 commented on issue #7785:
URL: https://github.com/apache/apisix/issues/7785#issuecomment-1226831802
> 我们自己根据filelogger插件做了一个根据域名拆分日志的插件,也遇到你这个问题了,我们是重新引用了openresty的json模块
openresty的json模块可以专门有一个参数可以关闭 '/' 前的''。
>
> ```
> local json = require("cjson")
> json.encode_escape_forward_slash(false)
> ```
>
>
apisix的json模块是自己稍微做了下封装,我测试过直接在core.json里开启这个参数也是能生效的,但是相当于全局使用的json都会被修改所以不太敢这么做。所以你们如果只是某个插件想去掉这个转义符,可以稍微修改下这个插件里的json模块引用。
好的,我现在尝试一下,谢谢
--
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]