Skip to content

Commit d86f859

Browse files
mscdexjungx098
authored andcommitted
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: nodejs#11691 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7f26c8a commit d86f859

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/internal/url.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,6 @@ function originFor(url, base) {
11121112
case 'https:':
11131113
case 'ws:':
11141114
case 'wss:':
1115-
case 'file':
11161115
origin = new TupleOrigin(protocol.slice(0, -1),
11171116
url[context].host,
11181117
url[context].port,

0 commit comments

Comments
 (0)