1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00
* Global change.
Замена всех устаревших функции на аналогичные

* Global change.
Добавил локальные переменные там, где это было рентабельно.
This commit is contained in:
Ivan Gordeev
2021-07-26 09:18:18 +03:00
committed by GitHub
parent 4a2786967d
commit 373073e661
29 changed files with 121 additions and 123 deletions

View File

@@ -95,9 +95,9 @@ function Metrostroi.HTTPRequest(request)
if status and (status ~= "timeout") then
local data = string.Explode("\r\n\r\n",http_data)
table.remove(data,1)
local content = string.Implode("\n\n",data)
local content = table.concat(data,"\n\n")
timer.Destroy("Metrostroi_HTTPRequest")
timer.Remove("Metrostroi_HTTPRequest")
onSuccess(content)
end
end)