Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta.rb:38 ignore uri.port #21

Closed
ohac opened this issue Dec 21, 2009 · 2 comments
Closed

meta.rb:38 ignore uri.port #21

ohac opened this issue Dec 21, 2009 · 2 comments

Comments

@ohac
Copy link

ohac commented Dec 21, 2009

"http://#{uri.host}#{url}"

I think "#{uri.to_s}#{url}" is correct.

@tenderlove
Copy link
Member

I don't think so. Please submit a test case to reproduce the problem.

@ohac
Copy link
Author

ohac commented Jul 5, 2010

>> require 'uri'
=> false
>> uri = URI.parse('http://example.com:8080/')
=> #<URI::HTTP:0xf70e2a0c URL:http://example.com:8080/>
>> url = 'foo/'
=> "foo/"
>> "http://#{uri.host}#{url}"
=> "http://example.comfoo/"
>> "#{uri.to_s}#{url}"
=> "http://example.com:8080/foo/"

This issue was closed.
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

No branches or pull requests

2 participants