We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 113d138 commit 844e842Copy full SHA for 844e842
src/ngx_http_lua_headers.c
@@ -754,7 +754,7 @@ ngx_http_lua_ngx_header_set(lua_State *L)
754
ngx_str_null(&value);
755
756
} else if (lua_type(L, 3) == LUA_TTABLE) {
757
- n = luaL_getn(L, 3);
+ n = lua_objlen(L, 3);
758
if (n == 0) {
759
760
@@ -888,7 +888,7 @@ ngx_http_lua_ngx_req_header_set_helper(lua_State *L)
888
889
890
} else if (lua_type(L, 2) == LUA_TTABLE) {
891
- n = luaL_getn(L, 2);
+ n = lua_objlen(L, 2);
892
893
894
0 commit comments