Skip to content

Commit

Permalink
Remove hostname only if not 404 status code
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaslangen committed Jan 27, 2025
1 parent 9187251 commit 90c750e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shared/http/RingdownCurlHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ private function execWrapper(string $method, Url $url, ?ETag $etag): HttpRespons
} catch (HttpException $e) {
$this->output->writeError(sprintf('Request failed: %s', $e->getMessage()));
}
$this->removeUnavailable($hostname);

if ($response !== null && !$response->isNotFound()) {
$this->removeUnavailable($hostname);
}
}

if ($response === null) {
Expand Down

0 comments on commit 90c750e

Please sign in to comment.