From 1d3b14ea86b68e879fda8790446323cf4c2f0957 Mon Sep 17 00:00:00 2001 From: vermillion-dev Date: Wed, 27 Nov 2019 20:38:59 +0100 Subject: [PATCH] [1.2.3] Fix Discord Post Content-Type --- contentScripts/addTorrent/addTorrent.js | 2 +- manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contentScripts/addTorrent/addTorrent.js b/contentScripts/addTorrent/addTorrent.js index 237af48..b25bd2c 100644 --- a/contentScripts/addTorrent/addTorrent.js +++ b/contentScripts/addTorrent/addTorrent.js @@ -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'); diff --git a/manifest.json b/manifest.json index 64cbc4d..0677e76 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "BetterYGG", - "version": "1.2.2", + "version": "1.2.3", "description": "Téléchargez des torrents sur YGG sans ètre connecté et autres !!!", "icons": { "16": "img/flexgg16.png",