Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Support for literal IPv6 addresses in URLs. #2610

Closed
wants to merge 3 commits into from

Conversation

morkai
Copy link

@morkai morkai commented Jan 25, 2012

See #1138.

(obj.port ? ':' + obj.port : '')
auth + (obj.hostname.indexOf(':') === -1 ? obj.hostname :
('[' + obj.hostname + ']')
) + (obj.port ? ':' + obj.port : '')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you break this out into separate if statements?

koichik pushed a commit that referenced this pull request Jan 31, 2012
@koichik
Copy link

koichik commented Jan 31, 2012

@morkai - Merged in a94ffda. Thanks!

@koichik koichik closed this Jan 31, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants