ecere/net/HTTPFile; extras: Added https support; Promoted SSLSocket to ecere
[sdk] / extras / html / HTMLView.ec
index 5571895..da136c6 100644 (file)
@@ -556,7 +556,7 @@ class HTMLView : Window
             block.bitmap = entry.bitmap;
          else
          {
-            if(path && strstr(path, "http://") == path)
+            if(path && (strstr(path, "http://") == path || strstr(path, "https://") == path))
             {
                RequestLink request;
                objectsMutex.Wait();
@@ -769,7 +769,7 @@ class HTMLView : Window
 
       // PrintLn("\n\n\nOpening new location: ", location, "\n");
 
-      if(strstr(location, "http://") != location)
+      if(strstr(location, "http://") != location && strstr(location, "https://") != location)
       {
          if(!FileExists(location))
          {