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 20b73db

Browse filesBrowse files
minor #48763 [HttpClient] Remove unused code (nicolas-grekas)
This PR was submitted for the 5.4 branch but it was merged into the 6.3 branch instead. Discussion ---------- [HttpClient] Remove unused code | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Not needed since #35223 Commits ------- 5308c7c [HttpClient] Remove dead code
2 parents 377982f + 5308c7c commit 20b73db
Copy full SHA for 20b73db

File tree

1 file changed

+0
-5
lines changed
Filter options

1 file changed

+0
-5
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpClient/Response/MockResponse.php
-5Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,6 @@ protected static function perform(ClientState $multi, array &$responses): void
186186
$chunk[1]->getHeaders(false);
187187
self::readResponse($response, $chunk[0], $chunk[1], $offset);
188188
$multi->handlesActivity[$id][] = new FirstChunk();
189-
$buffer = $response->requestOptions['buffer'] ?? null;
190-
191-
if ($buffer instanceof \Closure && $response->content = $buffer($response->headers) ?: null) {
192-
$response->content = \is_resource($response->content) ? $response->content : fopen('php://temp', 'w+');
193-
}
194189
} catch (\Throwable $e) {
195190
$multi->handlesActivity[$id][] = null;
196191
$multi->handlesActivity[$id][] = $e;

0 commit comments

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