8000 force HTTP 1.1 for Mailgun API requests · symfony/symfony@0bf9e72 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0bf9e72

Browse files
committed
force HTTP 1.1 for Mailgun API requests
1 parent e3625f2 commit 0bf9e72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/Mailer/Bridge/Mailgun/Transport/MailgunApiTransport.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ protected function doSendApi(SentMessage $sentMessage, Email $email, Envelope $e
6161

6262
$endpoint = sprintf('%s/v3/%s/messages', $this->getEndpoint(), urlencode($this->domain));
6363
$response = $this->client->request('POST', 'https://'.$endpoint, [
64+
'http_version' => '1.1',
6465
'auth_basic' => 'api:'.$this->key,
6566
'headers' => $headers,
6667
'body' => $body->bodyToIterable(),

0 commit comments

Comments
 (0)
0