Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1de0473

Browse filesBrowse files
committed
Add missing charset to content-type for Slack notifier
1 parent b802c6d commit 1de0473
Copy full SHA for 1de0473

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

‎src/Symfony/Component/Notifier/Bridge/Slack/SlackTransport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/Slack/SlackTransport.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ protected function doSend(MessageInterface $message): SentMessage
8080
$response = $this->client->request('POST', 'https://'.$this->getEndpoint().'/api/chat.postMessage', [
8181
'json' => array_filter($options),
8282
'auth_bearer' => $this->accessToken,
83+
'headers' => [
84+
'content-type' => 'application/json; charset=utf-8',
85+
],
8386
]);
8487

8588
if (200 !== $response->getStatusCode()) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.