Compare commits
No commits in common. "allow-ipv6-failure" and "develop" have entirely different histories.
allow-ipv6
...
develop
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class HttpClient implements ICanSendHttpRequests
|
||||||
throw new \InvalidArgumentException('Unable to retrieve the host in URL: ' . $url);
|
throw new \InvalidArgumentException('Unable to retrieve the host in URL: ' . $url);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!filter_var($host, FILTER_VALIDATE_IP) && !@dns_get_record($host . '.', DNS_A) && !@dns_get_record($host . '.', DNS_AAAA)) {
|
if(!filter_var($host, FILTER_VALIDATE_IP) && !@dns_get_record($host . '.', DNS_A + DNS_AAAA)) {
|
||||||
$this->logger->debug('URL cannot be resolved.', ['url' => $url]);
|
$this->logger->debug('URL cannot be resolved.', ['url' => $url]);
|
||||||
$this->profiler->stopRecording();
|
$this->profiler->stopRecording();
|
||||||
return CurlResult::createErrorCurl($this->logger, $url);
|
return CurlResult::createErrorCurl($this->logger, $url);
|
||||||
|
|
Loading…
Add table
Reference in a new issue