@@ -93,8 +93,7 @@ ffi.cdef[[
93
93
size_t ngx_http_lua_ffi_req_get_querystring_len (ngx_http_request_t * r );
94
94
95
95
int ngx_http_lua_ffi_req_get_uri_args (ngx_http_request_t * r ,
96
- unsigned char * buf , ngx_http_lua_ffi_table_elt_t * out ,
97
- int count , int allow_empty_key );
96
+ unsigned char * buf , ngx_http_lua_ffi_table_elt_t * out , int count );
98
97
99
98
int ngx_http_lua_ffi_req_get_method (ngx_http_request_t * r );
100
99
@@ -200,7 +199,7 @@ function ngx.req.get_headers(max_headers, raw)
200
199
end
201
200
202
201
203
- function ngx .req .get_uri_args (max_args , tab , allow_empty_key )
202
+ function ngx .req .get_uri_args (max_args , tab )
204
203
local r = get_request ()
205
204
if not r then
206
205
error (" no request found" )
@@ -210,8 +209,6 @@ function ngx.req.get_uri_args(max_args, tab, allow_empty_key)
210
209
max_args = - 1
211
210
end
212
211
213
- allow_empty_key = allow_empty_key or false
214
-
215
212
if tab then
216
213
clear_tab (tab )
217
214
end
@@ -230,8 +227,7 @@ function ngx.req.get_uri_args(max_args, tab, allow_empty_key)
230
227
local strbuf = get_string_buf (args_len + n * table_elt_size )
231
228
local kvbuf = ffi_cast (table_elt_type , strbuf + args_len )
232
229
233
- local nargs = C .ngx_http_lua_ffi_req_get_uri_args (r , strbuf , kvbuf , n ,
234
- allow_empty_key )
230
+ local nargs = C .ngx_http_lua_ffi_req_get_uri_args (r , strbuf , kvbuf , n )
235
231
236
232
local args = tab or new_tab (0 , nargs )
237
233
for i = 0 , nargs - 1 do
0 commit comments