utils.hastebin: set content type

This commit is contained in:
Cynthia Foxwell 2022-04-01 20:21:00 -06:00
parent f375acf9c8
commit d929e6ffb3

View file

@ -153,6 +153,7 @@ async function getImage(msg, str) {
async function hastebin(body) {
const res = await fetch(`https://nekobin.com/api/documents`, {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({content: body}),
}).then((r) => r.json());
return "https://nekobin.com" + res.result.key;