diff options
author | Nat Morris <nat@nuqe.net> | 2017-02-16 16:21:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-16 16:21:01 +0000 |
commit | e2d583728543e0b46c21a8fad56674bbda544006 (patch) | |
tree | 12f9fe9ba263121d9bf6fdc819444d8c19321a5a /lib/oxidized/source/http.rb | |
parent | 9a5bbb784ae36b824072051e570d5f752c531d68 (diff) | |
parent | deae31cb04c184266e1b9c843325604a90113665 (diff) |
Merge pull request #10 from ytti/master
Bring Netflix master in sync with upstream
Diffstat (limited to 'lib/oxidized/source/http.rb')
-rw-r--r-- | lib/oxidized/source/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/source/http.rb b/lib/oxidized/source/http.rb index 7186f98..6c12f29 100644 --- a/lib/oxidized/source/http.rb +++ b/lib/oxidized/source/http.rb @@ -29,7 +29,7 @@ class HTTP < Source end request = Net::HTTP::Get.new(uri.request_uri, headers) - if (@cfg.user && @cfg.pass) + if (@cfg.user? && @cfg.pass?) request.basic_auth(@cfg.user,@cfg.pass) end |