mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
Update webstats_common.lua
This commit is contained in:
@@ -620,7 +620,12 @@ function _M.statistics_request(self, ip, is_spider, body_length)
|
||||
if not is_spider and ngx.status == 200 and body_length > 0 then
|
||||
local ua = ''
|
||||
if request_header['user-agent'] then
|
||||
ua = string.lower(request_header['user-agent'])
|
||||
if "table" == type(request_header['user-agent']) then
|
||||
ua = self:to_json(request_header['user-agent'])
|
||||
else
|
||||
ua = request_header['user-agent']
|
||||
end
|
||||
ua = string.lower(ua)
|
||||
end
|
||||
|
||||
pvc = 1
|
||||
|
||||
Reference in New Issue
Block a user