diff --git a/lib/service/extract-saz.js b/lib/service/extract-saz.js
index <HASH>..<HASH> 100644
--- a/lib/service/extract-saz.js
+++ b/lib/service/extract-saz.js
@@ -34,7 +34,8 @@ function parseMetaInfo(result) {
     if (!req.headers.host) {
       req.headers.host = options.host;
     }
-    port = options.port || (/^https:/i.test(req.url) ? 443 : 80);
+    req.isHttps = /^https:/i.test(req.url);
+    port = options.port || (req.isHttps ? 443 : 80);
     req.url = options.path;
   } else if (typeof req.headers.host !== 'string') {
     req.headers.host = '';
@@ -77,7 +78,7 @@ function parseMetaInfo(result) {
     result.url = req.url;
     result.isHttps = true;
   } else {
-    result.url = 'http://' + req.headers.host + req.url;
+    result.url = 'http' + (req.isHttps ? 's' : '') +'://' + req.headers.host + req.url;
     if (/\bwebsocket\b/i.test(req.headers.upgrade)) {
       result.url = result.url.replace(/^http/, 'ws');
     }
fix: import saz file