From c5874d1bd4253b5314fea6d354364938af7c80c9 Mon Sep 17 00:00:00 2001 From: Brian White Date: Sun, 5 Mar 2017 06:15:00 -0500 Subject: [PATCH] url: remove invalid file protocol check 'file' should have been 'file:' but since the WHATWG URL spec suggests using an opaque origin (which is what was already being used for file URLs), we'll just keep using that, making this merely a cleanup. PR-URL: https://github.com/nodejs/node/pull/11691 Reviewed-By: Luigi Pinca Reviewed-By: Joyee Cheung Reviewed-By: Timothy Gu Reviewed-By: Daijiro Wachi Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/internal/url.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/internal/url.js b/lib/internal/url.js index 630c69d2cbaf81..3dc317a8bbb7c3 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -1043,7 +1043,6 @@ function originFor(url, base) { case 'https:': case 'ws:': case 'wss:': - case 'file': origin = new TupleOrigin(protocol.slice(0, -1), url[context].host, url[context].port,