[1.2.3] Fix Discord Post Content-Type

This commit is contained in:
vermillion-dev
2019-11-27 20:38:59 +01:00
parent 223181f15e
commit 1d3b14ea86
2 changed files with 2 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ function addToDiscord() {
var xhr = new XMLHttpRequest();
xhr.open('POST', discordWebhookUrl);
xhr.setRequestHeader('Content-Type', 'multipart/form-data');
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.onload = function () {
if (xhr.status === 204) {
showAlert('valid_form_alert');