send content type and length??

This commit is contained in:
jane 2021-06-06 01:38:49 -04:00
parent 233b86bf4f
commit 14a44082ef

View file

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