修复反向代理代过来的数据

This commit is contained in:
Mr Chen
2023-11-18 02:36:18 +08:00
parent 719eec4b98
commit e2d680cb2a
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -121,6 +121,10 @@ end
function _M.split(self, str, reps)
local arr = {}
-- 修复反向代理代过来的数据
if "table" == type(data) then
return str
end
string.gsub(str,'[^'..reps..']+',function(w) table.insert(arr,w) end)
return arr
end