Skip to content

Commit 311525c

Browse files
committed
fix: remove http2 hardcode limitation in ngx.location subrequest API
1 parent 8ec4f0b commit 311525c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/ngx_http_lua_subrequest.c

-6
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,6 @@ ngx_http_lua_ngx_location_capture_multi(lua_State *L)
173173
return luaL_error(L, "no request object found");
174174
}
175175

176-
#if (NGX_HTTP_V2)
177-
if (r->main->stream) {
178-
return luaL_error(L, "http2 requests not supported yet");
179-
}
180-
#endif
181-
182176
ctx = ngx_http_get_module_ctx(r, ngx_http_lua_module);
183177
if (ctx == NULL) {
184178
return luaL_error(L, "no ctx found");

0 commit comments

Comments
 (0)