-
- Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
invalidIssues and PRs that are invalid.Issues and PRs that are invalid.
Description
- Version: 4.3.0
- Platform: Darwin Apples-MacBook-Pro-2.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64
When I try to parse a url which has a port but no protocol, node returns protocol as the host name as part of the url object.
url.parse('localhost:8080/api/user') returns
{ protocol: 'localhost:', slashes: null, auth: null, host: '8080', port: null, hostname: '8080', hash: null, search: null, query: null, pathname: '/api/user', path: '/api/user', href: 'localhost:8080/api/user' } Host, protocol and port all here messed up here.
Metadata
Metadata
Assignees
Labels
invalidIssues and PRs that are invalid.Issues and PRs that are invalid.