From c101c05c8c93d1e7cf489ddd8f7207c9c3d75bf9 Mon Sep 17 00:00:00 2001 From: daniel-mannheimer Date: Thu, 29 Aug 2019 18:35:56 +0200 Subject: [PATCH] remove www. check breaks usage of subdomains like https://testdomain.plentymarkets.com --- src/PlentymarketsRestClient/PlentymarketsRestClient.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/PlentymarketsRestClient/PlentymarketsRestClient.php b/src/PlentymarketsRestClient/PlentymarketsRestClient.php index 8e4dacb..addceb9 100644 --- a/src/PlentymarketsRestClient/PlentymarketsRestClient.php +++ b/src/PlentymarketsRestClient/PlentymarketsRestClient.php @@ -141,10 +141,6 @@ private function correctURL($url) $url = str_replace('http://', 'https://.', $url); } - if (!($sUrl->contains('www.'))) { - $url = str_replace('https://', 'https://www.', $url); - } - $url = rtrim($url, '/') . '/'; return $url;