url: restrict setting protocol to "file" · nodejs/node@c51d925 · GitHub
Skip to content

Commit c51d925

Browse files
watildeMylesBorins
authored andcommitted
url: restrict setting protocol to "file"
Since file URLs can not have `username/password/port`, the specification was updated to restrict setting protocol to "file". Refs: whatwg/url#269 Fixes: #11785 PR-URL: #11887 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 8ab26cf commit c51d925

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/internal/url.js

Lines changed: 7 additions & 0 deletions

0 commit comments

Comments
 (0)