fix wrong url post

This commit is contained in:
jane 2021-06-06 00:08:17 -04:00
parent eef823a684
commit 0729cd9ee5
2 changed files with 10 additions and 1 deletions

View file

@ -58,6 +58,9 @@ local function getAllFiles()
local indexesUrl = url .. "/indexes/" .. programToInstall
local result = http.get(indexesUrl)
if result == nil then
print("error! getting indexes for " .. programToInstall)
end
local resultText = result.readAll()
local resultTable = split(resultText, "\n")

View file

@ -61,11 +61,17 @@ local function getAllFiles()
indexesFile.close()
end
local result = http.post(indexesUrl, currentFiles)
local result = http.post(updateUrl, currentFiles)
if result == nil then
print("error! getting updates for " .. programToInstall)
end
local resultText = result.readAll()
local resultTable = split(resultText, "\n")
local result2 = http.get(indexesUrl)
if result2 == nil then
print("error! getting indexes for " .. programToInstall)
end
local resultText2 = result2.readAll()
local resultTable2 = split(resultText2, "\n")