diff --git a/src/Yangqi/Htmldom/Htmldom.php b/src/Yangqi/Htmldom/Htmldom.php
index 11a04bc..10a375e 100644
--- a/src/Yangqi/Htmldom/Htmldom.php
+++ b/src/Yangqi/Htmldom/Htmldom.php
@@ -113,7 +113,7 @@ public function __construct($str=null, $lowercase=true, $forceTagsClosed=true, $
{
if ($str)
{
- if (preg_match("/^http:\/\//i",$str) || is_file($str))
+ if (preg_match("/^(http|https):\/\//i",$str) || is_file($str))
{
$this->load_file($str);
}