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

Appearance settings

Commit 61c2851

Browse filesBrowse files
[HttpClient] ensure debug stream is closed properly
1 parent c45c6e5 commit 61c2851
Copy full SHA for 61c2851

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

‎src/Symfony/Component/HttpClient/Response/CurlResponse.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Response/CurlResponse.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ private function close(): void
226226
CURLOPT_READFUNCTION => null,
227227
CURLOPT_INFILE => null,
228228
]);
229+
230+
// ensure the debug stream is closed properly
231+
$this->getInfo();
229232
}
230233

231234
/**

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.