mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
feat: improve error/exception ui (#3690)
This commit is contained in:
@@ -115,8 +115,8 @@ final class CurlHttpClient implements HttpClient
|
||||
$attempts = 0;
|
||||
while (true) {
|
||||
$attempts++;
|
||||
$data = curl_exec($ch);
|
||||
if ($data !== false) {
|
||||
$body = curl_exec($ch);
|
||||
if ($body !== false) {
|
||||
// The network call was successful, so break out of the loop
|
||||
break;
|
||||
}
|
||||
@@ -136,7 +136,7 @@ final class CurlHttpClient implements HttpClient
|
||||
|
||||
$statusCode = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
|
||||
curl_close($ch);
|
||||
return new Response($data, $statusCode, $responseHeaders);
|
||||
return new Response($body, $statusCode, $responseHeaders);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user