diff --git a/index.js b/index.js index fa42e9c..245924a 100644 --- a/index.js +++ b/index.js @@ -58,8 +58,6 @@ app.get("/indexes/:project(\\w+)", (req, res) => { res.sendStatus(404); } }); -app.use(express.urlencoded({ extended: false })); -app.use(express.text()); function diff(current, checked) { let lines_current = current.split('\n').map(l => l.trim()).filter(l => l != ""); diff --git a/projects/updater/update.lua b/projects/updater/update.lua index 5a31b0b..f09c2b1 100644 --- a/projects/updater/update.lua +++ b/projects/updater/update.lua @@ -69,12 +69,7 @@ local function getAllFiles(program) print("#DEBUG currentFiles " .. currentFiles) - local updateResult = http.post(updateUrl, { - content = currentFiles - }, { - ["Content-Type"] = "text/plain", - ["Content-Length"] = #currentFiles - }) + local updateResult = http.post(updateUrl, currentFiles) if updateResult == nil then print("error! getting updates for " .. program) error()