From 14a44082ef13fa0cd82474bbd852fce819488062 Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Sun, 6 Jun 2021 01:38:49 -0400 Subject: [PATCH] send content type and length?? --- projects/updater/update.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/updater/update.lua b/projects/updater/update.lua index f09c2b1..fdafeca 100644 --- a/projects/updater/update.lua +++ b/projects/updater/update.lua @@ -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()