Skip to content

Commit

Permalink
fix(patchs): remove openresty http2 hardcode limitation in ngx.locati…
Browse files Browse the repository at this point in the history
…on subrequest API
  • Loading branch information
oowl committed Sep 4, 2024
1 parent 78bee02 commit 9972720
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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");

0 comments on commit 9972720

Please sign in to comment.