Fix Request

This commit is contained in:
Steven Tracey 2023-12-19 10:22:40 -06:00
parent e6d8e70bb1
commit e1709cd32a

3
app.js
View File

@ -20,13 +20,12 @@ const service = "[Unit]\n" +
function generateQuickCmd() {
let reqData = new FormData();
reqData.append("format", "json");
reqData.append("content", encodeURI(buildCmd()));
reqData.append("content", buildCmd());
reqData.append("expires", "3600");
reqData.append("lexer", "bash");
fetch("https://paste.nevets.tech/api/", {
method: "POST",
headers: {'Content-Type': 'application/json'},
body: reqData,
mode: "cors"
}).then(res => res.json().then(json => {