i fucking hate old computercraft

This commit is contained in:
jane 2021-06-06 02:18:34 -04:00
parent 7aaeb91add
commit aed5b034a9
2 changed files with 7 additions and 4 deletions

View file

@ -69,9 +69,11 @@ local function getAllFiles(program)
print("#DEBUG currentFiles " .. currentFiles)
local updateResult = http.post(updateUrl, currentFiles, {
["Content-Type"] = "text/plain",
["Content-Length"] = #currentFiles
local updateResult = http.post(updateUrl, {
content = currentFiles
}, {
["Content-Type"] = "text/plain",
["Content-Length"] = #currentFiles
})
if updateResult == nil then
print("error! getting updates for " .. program)