diff --git a/src/Service/RDAPService.php b/src/Service/RDAPService.php index 05766e4..d5ac6b5 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -265,7 +265,7 @@ class RDAPService { if ( ($e instanceof ClientException && 404 === $e->getResponse()->getStatusCode()) - || ($e instanceof TransportExceptionInterface && null !== $response && !in_array('content-length', $response->getHeaders(false))) + || ($e instanceof TransportExceptionInterface && null !== $response && !in_array('content-length', $response->getHeaders(false)) && 404 === $response->getStatusCode()) ) { if (null !== $domain) { $this->logger->notice('The domain name {idnDomain} has been deleted from the WHOIS database.', [