Skip to content

Fix the doc about exception handling in the HttpClient component #11577

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
May 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/http_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ When the HTTP status code of the response is not in the 200-299 range (i.e. 3xx,
$content = $response->getContent();

// pass FALSE as the optional argument to not throw an exception and
// return instead an empty string
// return instead the response content even for errors
$content = $response->getContent(false);

Caching Requests and Responses
Expand Down