Skip to content

Commit

Permalink
Remove useless self ref from common_args
Browse files Browse the repository at this point in the history
  • Loading branch information
p0pr0ck5 committed Aug 23, 2016
1 parent bae8185 commit 0af7a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/resty/waf/collections.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ _M.lookup = {
local request_basename = request.basename(waf, ngx.var.uri)
local request_body = request.parse_request_body(waf, request_headers)
local request_cookies = request.cookies() or {}
local request_common_args = request.common_args(waf, { request_uri_args, request_body, request_cookies })
local request_common_args = request.common_args({ request_uri_args, request_body, request_cookies })

collections.REMOTE_ADDR = ngx.var.remote_addr
collections.HTTP_VERSION = ngx.req.http_version()
Expand Down
2 changes: 1 addition & 1 deletion lib/resty/waf/request.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ end
-- return a single table from multiple tables containing request data
-- note that collections that are not a table (e.g. REQUEST_BODY with
-- a non application/x-www-form-urlencoded content type) are ignored
function _M.common_args(waf, collections)
function _M.common_args(collections)
local t = {}

for _, collection in pairs(collections) do
Expand Down

0 comments on commit 0af7a5f

Please sign in to comment.