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

原文地址:https://www.cnblogs.com/rongfengliang/p/13435652.html