summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http/loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodejs/unit-http/loader.js')
-rw-r--r--src/nodejs/unit-http/loader.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nodejs/unit-http/loader.js b/src/nodejs/unit-http/loader.js
index e5aa3558..849df3d1 100644
--- a/src/nodejs/unit-http/loader.js
+++ b/src/nodejs/unit-http/loader.js
@@ -11,10 +11,12 @@ if (module.parent && module.parent.id === "internal/preload") {
Module.prototype.require = function (id) {
switch(id) {
case "http":
+ case "node:http":
case "unit-http":
return http
case "websocket":
+ case "node:websocket":
case "unit-http/websocket":
return websocket
}