please let the not be fucking horrible
This commit is contained in:
parent
3e36e1dd21
commit
b8affd203f
2 changed files with 3 additions and 1 deletions
2
index.js
2
index.js
|
@ -59,6 +59,8 @@ app.get("/indexes/:project(\\w+)", (req, res) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.use(express.urlencoded({ extended: false }));
|
||||||
|
|
||||||
function diff(current, checked) {
|
function diff(current, checked) {
|
||||||
let lines_current = current.split('\n').map(l => l.trim()).filter(l => l != "");
|
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 != "");
|
let lines_checked = checked.split('\n').map(l => l.trim()).filter(l => l != "");
|
||||||
|
|
|
@ -69,7 +69,7 @@ local function getAllFiles(program)
|
||||||
|
|
||||||
print("#DEBUG currentFiles " .. currentFiles)
|
print("#DEBUG currentFiles " .. currentFiles)
|
||||||
|
|
||||||
local updateResult = http.post(updateUrl, currentFiles)
|
local updateResult = http.post(updateUrl, "content=" .. textutils.urlEncode(currentFiles))
|
||||||
if updateResult == nil then
|
if updateResult == nil then
|
||||||
print("error! getting updates for " .. program)
|
print("error! getting updates for " .. program)
|
||||||
error()
|
error()
|
||||||
|
|
Loading…
Reference in a new issue