Skip to content

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Aug 21, 2015

When Addressable::URI is used, the port property will be nil unless port was explicitly specified. This made Addressable unusable in HTTPS scenarios with Net::HTTP adapters, which would default to port 80 even when the scheme was "https".

Others adapters are not affected, as they get passed the full request URI and respect their scheme portion.

Closes #512, fixes #318

When Addressable::URI is used, the `port` property will be nil unless
port was explicitly specified. This made Addressable unusable in HTTPS
scenarios with Net::HTTP adapters, which would default to port 80 even
when the scheme was "https".
mislav added a commit that referenced this pull request Aug 21, 2015
Fix default port numbers for Net::HTTP adapters
@mislav mislav merged commit cc9772b into master Aug 21, 2015
@mislav mislav deleted the no-port-number branch August 21, 2015 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTTPS doesn't work when using Addressable::URI

2 participants