Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4e14e02

Browse files
committed
Merge branch '4.3'
* 4.3: Fix the doc about exception handling in the HttpClient component
2 parentsd5f5464 +8fc8457 commit4e14e02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎components/http_client.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ When the HTTP status code of the response is not in the 200-299 range (i.e. 3xx,
303303
// because it doesn't check the status code of the response
304304
$content = $response->getContent();
305305

306-
// pass FALSE as the optional argument to not throw an exception and
307-
//returninstead anempty string
306+
// pass FALSE as the optional argument to not throw an exception and return
307+
// insteadthe original response content (even if it'sanerror message)
308308
$content = $response->getContent(false);
309309

310310
Caching Requests and Responses

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp