From 2b902939d068b5322ccb5a4979e7d1611838f181 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 15 May 2019 14:38:38 +0200 Subject: [PATCH] Fix the doc about exception handling in the HttpClient component --- components/http_client.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/http_client.rst b/components/http_client.rst index 40f6c182693..e94e9119023 100644 --- a/components/http_client.rst +++ b/components/http_client.rst @@ -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