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() {
|
function generateQuickCmd() {
|
||||||
let reqData = new FormData();
|
let reqData = new FormData();
|
||||||
reqData.append("format", "json");
|
reqData.append("format", "json");
|
||||||
reqData.append("content", encodeURI(buildCmd()));
|
reqData.append("content", buildCmd());
|
||||||
reqData.append("expires", "3600");
|
reqData.append("expires", "3600");
|
||||||
reqData.append("lexer", "bash");
|
reqData.append("lexer", "bash");
|
||||||
|
|
||||||
fetch("https://paste.nevets.tech/api/", {
|
fetch("https://paste.nevets.tech/api/", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {'Content-Type': 'application/json'},
|
|
||||||
body: reqData,
|
body: reqData,
|
||||||
mode: "cors"
|
mode: "cors"
|
||||||
}).then(res => res.json().then(json => {
|
}).then(res => res.json().then(json => {
|
||||||
|
Loading…
Reference in New Issue
Block a user