Skip to content

Commit 890442b

Browse files
committed
url.protocol can return (only?) null when no protocol in URL
1 parent 98bfed0 commit 890442b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/XMLHttpRequest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ exports.XMLHttpRequest = function() {
308308
break;
309309

310310
case undefined:
311+
case null:
311312
case '':
312313
host = "localhost";
313314
break;

0 commit comments

Comments
 (0)