Skip to content

Commit 2b90293

Browse files
authored
Fix the doc about exception handling in the HttpClient component
1 parent de07ee4 commit 2b90293

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: components/http_client.rst

+1-1
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)