From 3d08dd4ef6c10b443e422984564fdf5f9224d919 Mon Sep 17 00:00:00 2001 From: Cedric Hauber Date: Fri, 18 Sep 2015 10:13:57 +0200 Subject: [PATCH] Switch to localhost when protocol is null --- lib/XMLHttpRequest.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/XMLHttpRequest.js b/lib/XMLHttpRequest.js index 949fdf9..2fdbb28 100644 --- a/lib/XMLHttpRequest.js +++ b/lib/XMLHttpRequest.js @@ -284,6 +284,7 @@ exports.XMLHttpRequest = function() { break; case undefined: + case null: case "": host = "localhost"; break;