diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index 4aefcfe5abacd457d1ab5d291b93f77b1bea4db1..e87ce741aab69c2a6deb013d008ecdd5c6efbceb 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -278,7 +278,7 @@ class HTTPClient {
         }
 
         // add SSL stream prefix if needed - needs SSL support in PHP
-        if($port == 443 || $this->proxy_ssl) {
+        if($port == 443 || $this->proxy_ssl || $uri['scheme'] == 'https') {
             if(!in_array('ssl', stream_get_transports())) {
                 $this->status = -200;
                 $this->error = 'This PHP version does not support SSL - cannot connect to server';