Browse Source

Fixed used variables for basic_auth.

Martin Edenhofer 10 years ago
parent
commit
48156373a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/user_agent.rb

+ 1 - 1
lib/user_agent.rb

@@ -70,7 +70,7 @@ returns
 
         # http basic auth (if needed)
         if options[:user] && options[:user] != '' && options[:password] && options[:password] != ''
-          request.basic_auth user, password
+          request.basic_auth options[:user], options[:password]
         end
 
         begin