Skip to content

Commit 20b73db

Browse 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

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy