diff --git a/lib/url.js b/lib/url.js index 7db23bf48a1305..bb11144f7a33bc 100644 --- a/lib/url.js +++ b/lib/url.js @@ -48,14 +48,14 @@ const hostlessProtocol = { // protocols that always contain a // bit. const slashedProtocol = { 'http': true, - 'https': true, - 'ftp': true, - 'gopher': true, - 'file': true, 'http:': true, + 'https': true, 'https:': true, + 'ftp': true, 'ftp:': true, + 'gopher': true, 'gopher:': true, + 'file': true, 'file:': true }; const querystring = require('querystring');