Skip to content

[HttpClient] turn exception into log when the request has no content-type #34669

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

Merged
merged 1 commit into from
Nov 28, 2019

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 4.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Spotted while merging a PR with ext-curl disabled:

  [Symfony\Component\HttpClient\Exception\TransportException]                     
  fopen(): Content-type not specified assuming application/x-www-form-urlencoded  

This is now a log.

@nicolas-grekas nicolas-grekas added this to the 4.3 milestone Nov 27, 2019
nicolas-grekas added a commit that referenced this pull request Nov 28, 2019
…no content-type (nicolas-grekas)

This PR was merged into the 4.3 branch.

Discussion
----------

[HttpClient] turn exception into log when the request has no content-type

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Spotted while merging a PR with ext-curl disabled:

```
  [Symfony\Component\HttpClient\Exception\TransportException]
  fopen(): Content-type not specified assuming application/x-www-form-urlencoded
```

This is now a log.

Commits
-------

4c671a4 [HttpClient] turn exception into log when the request has no content-type
@nicolas-grekas nicolas-grekas merged commit 4c671a4 into symfony:4.3 Nov 28, 2019
@nicolas-grekas nicolas-grekas deleted the hc-fopen-no-ct branch November 28, 2019 08:02
This was referenced Dec 1, 2019
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.

2 participants