Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit 6ebd1f7

Browse files
author
Stefan
committed
ERROR_PROXY_UNREACHABLE sytex error fix
1 parent 4a700c7 commit 6ebd1f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/PHPCrawlerHTTPRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public function sendRequest(): PHPCrawlerDocumentInfo
412412
// If error occured
413413
if (isset($PageInfo->error_code) && $PageInfo->error_code > 0) {
414414
// If proxy-error -> throw exception
415-
if ($PageInfo->error_code == PHPCrawlerRequestPHPCrawlerLinkFinderErrors::ERROR_PROXY_UNREACHABLE) {
415+
if ($PageInfo->error_code == PHPCrawlerRequestErrors::ERROR_PROXY_UNREACHABLE) {
416416
throw new RuntimeException("Unable to connect to proxy '" . $this->proxy['proxy_host'] . "' on port '" . $this->proxy['proxy_port'] . "'");
417417
}
418418

0 commit comments

Comments
 (0)