8000 minor #11577 Fix the doc about exception handling in the HttpClient c… · symfony/symfony-docs@1583a3b · GitHub
[go: up one dir, main page]

Skip to content

Commit 1583a3b

Browse files
committed
minor #11577 Fix the doc about exception handling in the HttpClient component (stof)
This PR was merged into the 4.3 branch. Discussion ---------- Fix the doc about exception handling in the HttpClient component Commits ------- 2b90293 Fix the doc about exception handling in the HttpClient component
2 parents de07ee4 + 2b90293 commit 1583a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/http_client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ When the HTTP status code of the response is not in the 200-299 range (i.e. 3xx,
304304
$content = $response->getContent();
305305

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

310310
Caching Requests and Responses

0 commit comments

Comments
 (0)
0