Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HttpClient][Mailer] Revert "Let curl handle transfer encoding", use HTTP/1.1 for Mailgun #57569

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jun 28, 2024

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #57544
License MIT

This PR reverts #54517 and fixes #54491 by forcing HTTP/1.1 when talking to Mailgun

The issue that #54517 tries to fix shouldn't happen since curl 7.51, which dates back from 2016 (curl/curl@d4c5a91). If you experience it, try upgrading.

The previous code worked fine for years but the new one generated reports a few weeks after its release so I'd feel more confident reverting.

@nicolas-grekas nicolas-grekas merged commit 792c027 into symfony:5.4 Jun 28, 2024
9 of 12 checks passed
@MisterDuval
Copy link

I'm having the same issue with the MailgunApiTransport.php, the fix is the same as the MailgunHttpTransport.php, adding
'http_version' => '1.1'

fabpot added a commit that referenced this pull request Jul 2, 2024
This PR was merged into the 5.4 branch.

Discussion
----------

[Mailer]  force HTTP 1.1 for Mailgun API requests

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #57544, Fix #57569 (comment)
| License       | MIT

Commits
-------

0bf9e72 force HTTP 1.1 for Mailgun API requests
@nicolas-grekas nicolas-grekas deleted the fix-hc-chunked branch July 2, 2024 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants