send content type and length??

This commit is contained in:
jane 2021-06-06 01:38:49 -04:00
parent 233b86bf4f
commit 14a44082ef
1 changed files with 4 additions and 1 deletions

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()