mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Do not hard-code port 80 or things will break for https
This was introduced in 8c6ff168
.
This commit is contained in:
parent
10db15cb21
commit
6d7894b416
1 changed files with 2 additions and 4 deletions
|
@ -46,10 +46,8 @@ class Capybara::RackTest::Browser
|
|||
method.downcase! unless method.is_a? Symbol
|
||||
|
||||
if new_uri.host
|
||||
@current_host = new_uri.scheme + '://' + new_uri.host
|
||||
if new_uri.port != 80
|
||||
@current_host << ":#{new_uri.port}"
|
||||
end
|
||||
@current_host = "#{new_uri.scheme}://#{new_uri.host}"
|
||||
@current_host << ":#{new_uri.port}" if new_uri.port != new_uri.default_port
|
||||
end
|
||||
|
||||
if new_uri.relative?
|
||||
|
|
Loading…
Add table
Reference in a new issue