From b8affd203fa56a2dd2ff4c00f48c5a035e767de5 Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Sun, 6 Jun 2021 02:32:52 -0400 Subject: [PATCH] please let the not be fucking horrible --- index.js | 2 ++ projects/updater/update.lua | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 245924a..a4cdf14 100644 --- a/index.js +++ b/index.js @@ -59,6 +59,8 @@ app.get("/indexes/:project(\\w+)", (req, res) => { } }); +app.use(express.urlencoded({ extended: false })); + function diff(current, checked) { let lines_current = current.split('\n').map(l => l.trim()).filter(l => l != ""); let lines_checked = checked.split('\n').map(l => l.trim()).filter(l => l != ""); diff --git a/projects/updater/update.lua b/projects/updater/update.lua index f09c2b1..a7eec56 100644 --- a/projects/updater/update.lua +++ b/projects/updater/update.lua @@ -69,7 +69,7 @@ local function getAllFiles(program) print("#DEBUG currentFiles " .. currentFiles) - local updateResult = http.post(updateUrl, currentFiles) + local updateResult = http.post(updateUrl, "content=" .. textutils.urlEncode(currentFiles)) if updateResult == nil then print("error! getting updates for " .. program) error()