From 99727202c001743c38c15797ea08e8d5b6277f30 Mon Sep 17 00:00:00 2001 From: Jun Ouyang Date: Wed, 4 Sep 2024 15:01:51 +0800 Subject: [PATCH] fix(patchs): remove openresty http2 hardcode limitation in ngx.location subrequest API --- ...p2-hardcode-limitation-in-ngx-location.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 build/openresty/patches/ngx_lua-0.10.26_07-remove-http2-hardcode-limitation-in-ngx-location.patch diff --git a/build/openresty/patches/ngx_lua-0.10.26_07-remove-http2-hardcode-limitation-in-ngx-location.patch b/build/openresty/patches/ngx_lua-0.10.26_07-remove-http2-hardcode-limitation-in-ngx-location.patch new file mode 100644 index 000000000000..8bcea9fac313 --- /dev/null +++ b/build/openresty/patches/ngx_lua-0.10.26_07-remove-http2-hardcode-limitation-in-ngx-location.patch @@ -0,0 +1,17 @@ +diff --git a/bundle/ngx_lua-0.10.26/src/ngx_http_lua_subrequest.c b/bundle/ngx_lua-0.10.26/src/ngx_http_lua_subrequest.c +index f4db9aa..d887b28 100644 +--- a/bundle/ngx_lua-0.10.26/src/ngx_http_lua_subrequest.c ++++ b/bundle/ngx_lua-0.10.26/src/ngx_http_lua_subrequest.c +@@ -172,12 +172,6 @@ ngx_http_lua_ngx_location_capture_multi(lua_State *L) + return luaL_error(L, "no request object found"); + } + +-#if (NGX_HTTP_V2) +- if (r->main->stream) { +- return luaL_error(L, "http2 requests not supported yet"); +- } +-#endif +- + ctx = ngx_http_get_module_ctx(r, ngx_http_lua_module); + if (ctx == NULL) { + return luaL_error(L, "no ctx found");