Update webstats_common.lua
This commit is contained in:
parent
d387546986
commit
6b3dae6169
|
|
@ -200,8 +200,9 @@ end
|
|||
|
||||
function _M.get_http_origin(self)
|
||||
local data = ""
|
||||
local headers = ngx.req.get_headers()
|
||||
local method = ngx.req.get_method()
|
||||
if not headers then return data end
|
||||
local headers = ngx.req.get_headers()
|
||||
if method ~='GET' then
|
||||
-- API disabled in the context of log_by_lua*
|
||||
-- ngx.req.read_body()
|
||||
|
|
|
|||
Loading…
Reference in New Issue