Skip to content

Commit 92a9663

Browse files
committed
ignore RuntimeExceptions thrown when trying to seek start of PSR-7 stream in createPsr7Response
1 parent 75da5aa commit 92a9663

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Component/HttpClient/Internal/HttplugWaitLoop.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ public static function createPsr7Response(ResponseFactoryInterface $responseFact
140140
}
141141

142142
if ($body->isSeekable()) {
143-
$body->seek(0);
143+
try {
144+
$body->seek(0);
145+
} catch (\RuntimeException) {
146+
// ignore
147+
}
144148
}
145149

146150
return $psrResponse->withBody($body);

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