Skip to content

Commit e8d032b

Browse files
lukaslangentheseer
authored andcommitted
Remove hostname only if not 404 status code
1 parent 9187251 commit e8d032b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/shared/http/RingdownCurlHttpClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ private function execWrapper(string $method, Url $url, ?ETag $etag): HttpRespons
6666
} catch (HttpException $e) {
6767
$this->output->writeError(sprintf('Request failed: %s', $e->getMessage()));
6868
}
69-
$this->removeUnavailable($hostname);
69+
70+
if ($response !== null && !$response->isNotFound()) {
71+
$this->removeUnavailable($hostname);
72+
}
7073
}
7174

7275
if ($response === null) {

0 commit comments

Comments
 (0)