Update webstats_common.lua

This commit is contained in:
midoks 2022-12-01 03:27:24 +08:00
parent 15c0ef390e
commit a4dfe26254
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ end
function _M.get_http_origin(self)
local data = ""
local headers = ngx_req.get_headers()
local headers = ngx.req.get_headers()
if not headers then return data end
if method ~='GET' then
ngx.req.read_body()