From 15c0ef390ea131399e0c0912e02518503fbc7606 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 1 Dec 2022 03:15:53 +0800 Subject: [PATCH] Update webstats_common.lua --- plugins/webstats/lua/webstats_common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/webstats/lua/webstats_common.lua b/plugins/webstats/lua/webstats_common.lua index f23398d69..c09f12fca 100644 --- a/plugins/webstats/lua/webstats_common.lua +++ b/plugins/webstats/lua/webstats_common.lua @@ -201,7 +201,7 @@ end function _M.get_http_origin(self) local data = "" - local headers = request_header + local headers = ngx_req.get_headers() if not headers then return data end if method ~='GET' then ngx.req.read_body()