hiptest-publisher 0.16.1 → 0.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hiptest-publisher/client.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8ddfa18b72bf54286c4b422ddac405f659663c6
|
4
|
+
data.tar.gz: 2a8c147b72775ca9000050f5036a5ddc12e3f53b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a76dcbc58944f8b731eb847da01fdd2510233ac6d143f85e3d7e7bf1be8eab6ed6f66da37eb8ce155cb538ab17fef4938dfdce9c15a8768fab15259b79debc58
|
7
|
+
data.tar.gz: e54b8d70c55ac16b202cfd6331e3fc0ab0040de3c61f7bdef8a4c1c1b3c3e58d2b596145e2aa27d2650f015842948bffb9068f457a3dfa3001b3e5aebc42f81f
|
@@ -119,9 +119,11 @@ module Hiptest
|
|
119
119
|
request["User-Agent"] = "Ruby/hiptest-publisher"
|
120
120
|
use_ssl = request.uri.scheme == "https"
|
121
121
|
proxy_uri = find_proxy_uri(request.uri.hostname, request.uri.port)
|
122
|
-
|
123
|
-
|
124
|
-
|
122
|
+
if proxy_uri
|
123
|
+
proxy_address = proxy_uri.hostname
|
124
|
+
proxy_port = proxy_uri.port
|
125
|
+
proxy_user, proxy_pass = proxy_uri.userinfo.split(':', 2) if proxy_uri.userinfo
|
126
|
+
end
|
125
127
|
Net::HTTP.start(
|
126
128
|
request.uri.hostname, request.uri.port,
|
127
129
|
proxy_address, proxy_port, proxy_user, proxy_pass,
|