美文网首页
ngx.location.capture 读取开启 gzip 接

ngx.location.capture 读取开启 gzip 接

作者: 玛格丽特墨迹 | 来源:发表于2018-05-22 09:09 被阅读0次

今天碰到的一个坑,如果待读取的接口开启gzip,ngx.location.capture 是无法解析的,如下方法解决:

ngx.req.set_header("Accept-Encoding", "")

相关文章

网友评论

      本文标题:ngx.location.capture 读取开启 gzip 接

      本文链接:https://www.haomeiwen.com/subject/liocjftx.html