File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 12
12
- 2.1.10
13
13
- 2.2.5
14
14
- 2.3.1
15
+ - 2.4
16
+ - 2.5
15
17
script : rake travis
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ def proxy_port
120
120
def basic_connection
121
121
raise "#{ @uri } is not HTTP" unless @uri . scheme . downcase == 'http'
122
122
123
- net_http_args = [ @uri . host , @uri . port ]
123
+ net_http_args = [ @uri . hostname , @uri . port ]
124
124
125
125
connection = Net ::HTTP ::Persistent ::Connection . allocate
126
126
connection . ssl_generation = @http . ssl_generation
@@ -152,7 +152,7 @@ def r.read_body() :read_body end
152
152
def ssl_connection
153
153
raise "#{ @uri } is not HTTPS" unless @uri . scheme . downcase == 'https'
154
154
155
- net_http_args = [ @uri . host , @uri . port ]
155
+ net_http_args = [ @uri . hostname , @uri . port ]
156
156
157
157
connection = Net ::HTTP ::Persistent ::Connection . allocate
158
158
connection . ssl_generation = @http . ssl_generation
You can’t perform that action at this time.
0 commit comments