stretcher 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stretcher/server.rb +5 -0
- data/lib/stretcher/version.rb +1 -1
- metadata +1 -1
data/lib/stretcher/server.rb
CHANGED
@@ -30,6 +30,11 @@ module Stretcher
|
|
30
30
|
builder.options[:open_timeout] = 2
|
31
31
|
end
|
32
32
|
|
33
|
+
uri_components = URI.parse(@uri)
|
34
|
+
if uri_components.user || uri_components.password
|
35
|
+
@http.basic_auth(uri_components.user, uri_components.password)
|
36
|
+
end
|
37
|
+
|
33
38
|
if options[:logger]
|
34
39
|
@logger = options[:logger]
|
35
40
|
else
|
data/lib/stretcher/version.rb
CHANGED