elegance-js 1.17.2 → 1.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/build.mjs CHANGED
@@ -672,7 +672,7 @@ function startServer({
672
672
  }
673
673
  return;
674
674
  }
675
- const url = new URL(req.url, `https://${req.headers.host}`);
675
+ const url = new URL(req.url, `http://${req.headers.host}`);
676
676
  if (url.pathname.startsWith("/api/")) {
677
677
  await handleApiRequest(root, url.pathname, req, res);
678
678
  } else {
@@ -696,7 +696,7 @@ function startServer({
696
696
  }
697
697
  });
698
698
  server.listen(p, host, () => {
699
- log.info(`Server running at https://${host}:${p}/`);
699
+ log.info(`Server running at http://${host}:${p}/`);
700
700
  });
701
701
  return server;
702
702
  }
@@ -675,7 +675,7 @@ function startServer({
675
675
  }
676
676
  return;
677
677
  }
678
- const url = new URL(req.url, `https://${req.headers.host}`);
678
+ const url = new URL(req.url, `http://${req.headers.host}`);
679
679
  if (url.pathname.startsWith("/api/")) {
680
680
  await handleApiRequest(root, url.pathname, req, res);
681
681
  } else {
@@ -699,7 +699,7 @@ function startServer({
699
699
  }
700
700
  });
701
701
  server.listen(p, host, () => {
702
- log.info(`Server running at https://${host}:${p}/`);
702
+ log.info(`Server running at http://${host}:${p}/`);
703
703
  });
704
704
  return server;
705
705
  }
@@ -664,7 +664,7 @@ function startServer({
664
664
  }
665
665
  return;
666
666
  }
667
- const url = new URL(req.url, `https://${req.headers.host}`);
667
+ const url = new URL(req.url, `http://${req.headers.host}`);
668
668
  if (url.pathname.startsWith("/api/")) {
669
669
  await handleApiRequest(root, url.pathname, req, res);
670
670
  } else {
@@ -688,7 +688,7 @@ function startServer({
688
688
  }
689
689
  });
690
690
  server.listen(p, host, () => {
691
- log.info(`Server running at https://${host}:${p}/`);
691
+ log.info(`Server running at http://${host}:${p}/`);
692
692
  });
693
693
  return server;
694
694
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elegance-js",
3
- "version": "1.17.2",
3
+ "version": "1.17.3",
4
4
  "description": "Web-Framework",
5
5
  "type": "module",
6
6
  "bin": {