From a4dfe26254d0ae03cda01ce9ef23eaf67488ed7f Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 1 Dec 2022 03:27:24 +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 c09f12fca..1abaa11b8 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 = 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()