openresty ngx.location.capture http2 问题


以前openresty 使用的是http2,同时配置了 ngx.location.capture 是可以的(1.12 版本,有点老),今天升级了openresty
到目前最新版本(1.15.8.1)出现了以下问题

 
content_by_lua(nginx-index-https.conf:47):5: ngx.location.capture http2 requests not supported yet

相关解决方法

别使用ngx.location.capture了,直接使用 lua-resty-http 模块,当然如果可行,修改后端的服务接口也行

参考资料

https://github.com/openresty/lua-nginx-module/issues/1195
https://github.com/ledgetech/lua-resty-http


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM