forked from Steven/NginxInstaller
Fix Request
This commit is contained in:
parent
e6d8e70bb1
commit
e1709cd32a
3
app.js
3
app.js
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user