Skip to content

Commit

Permalink
Fix HTTPHEADER
Browse files Browse the repository at this point in the history
  • Loading branch information
LivacoNew authored Dec 24, 2019
1 parent 9672c0e commit 8b350bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DiscordWebhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ public function sendWebhook() {
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $json,
CURLOPT_HTTPHEADER => [
"Length" => strlen($json),
"Content-Type" => "application/json"
"Content-Type: application/json"
]
]);
$response = curl_exec($ch);
Expand Down

0 comments on commit 8b350bc

Please sign in to comment.