Parsed URL objects have a colon in protocol field. #3176
Copy link
Copy link
Closed
Labels
questionIssues asking questions about Node.js.Issues asking questions about Node.js.urlIssues and PRs related to the legacy built-in url module.Issues and PRs related to the legacy built-in url module.
Description
Activity
- addedquestionIssues asking questions about Node.js.Issues asking questions about Node.js.urlIssues and PRs related to the legacy built-in url module.Issues and PRs related to the legacy built-in url module.
on Oct 5, 2015 See #1237.
Nothing to do here: no problem, question already answered.
Metadata
Metadata
Assignees
Labels
questionIssues asking questions about Node.js.Issues asking questions about Node.js.urlIssues and PRs related to the legacy built-in url module.Issues and PRs related to the legacy built-in url module.
When I try to parse a url using
url.parse(), the protocol has a colon at the end.Example
The following command
returns
Shouldn't the protocol be
httpinstead ofhttp:? If not, what's the point of having it included?