From 36dc461b2a8627e3e1fe0477db3c06d02b5ea16e Mon Sep 17 00:00:00 2001 From: anio Date: Sun, 22 Mar 2015 23:12:51 +0430 Subject: [PATCH] lib: remove `:` from protocol in Url.parse(). --- lib/url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/url.js b/lib/url.js index 82209db01c8c31..1e560482753b0b 100644 --- a/lib/url.js +++ b/lib/url.js @@ -133,7 +133,7 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { if (proto) { proto = proto[0]; var lowerProto = proto.toLowerCase(); - this.protocol = lowerProto; + this.protocol = lowerProto.replace(/.$/, ''); rest = rest.substr(proto.length); }