Skip to content
Permalink
Browse files

Comply with stricter Discord rules for sending webhook requests

  • Loading branch information...
Marlamin committed Nov 26, 2019
1 parent 3abdd80 commit 625c8452044926a330d7603755332ec283acf49a
Showing with 1 addition and 1 deletion.
  1. +1 −1 monitor/scripts/crawler.php
@@ -41,7 +41,7 @@ function MessageDiscord($product, $message){
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
curl_setopt($ch, CURLOPT_USERAGENT, "Blizzard Monitor Discord Integration");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Length" => strlen($json), "Content-Type" => "application/json"]);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Length: " . strlen($json), "Content-Type: application/json"]);
$response = curl_exec($ch);
curl_close($ch);
}

0 comments on commit 625c845

Please sign in to comment.
You can’t perform that action at this time.