From 8c1a80f92d569622d2bef01603e39fb8d8fd0cc4 Mon Sep 17 00:00:00 2001 From: Sergio Date: Wed, 26 Jun 2019 14:35:46 +0100 Subject: [PATCH] DD-1423 : protocol neutral to http --- src/Dennis/Link/Checker/Analyzer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dennis/Link/Checker/Analyzer.php b/src/Dennis/Link/Checker/Analyzer.php index c4b2da8..e2ce469 100644 --- a/src/Dennis/Link/Checker/Analyzer.php +++ b/src/Dennis/Link/Checker/Analyzer.php @@ -194,10 +194,10 @@ public function getInfo($url) { * @throws ResourceFailException */ protected function doInfoRequest($url) { - // If url is protocol neutral, force it to use https. + // If url is protocol neutral, force it to use http. if (substr( $url, 0, 2 ) === "//") { $url = ltrim($url, '//'); - $url = 'https://' . $url; + $url = 'http://' . $url; } // Only redirect 301's so cannot use CURLOPT_FOLLOWLOCATION $ch = curl_init();