Permalink
Browse files

simplify method

  • Loading branch information...
1 parent 9ba0148 commit 5c176f08d52230f6898e60d53d296aaeacbda0e5 @dougcole dougcole committed Apr 3, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/rets/authentication.rb
@@ -43,9 +43,7 @@ def calculate_digest(user, password, realm, nonce, method, uri, qop, cnonce, nc)
end
end
- def calculate_user_agent_digest(user_agent, user_agent_password, rets_request_id, session_id, version)
- product = user_agent
-
+ def calculate_user_agent_digest(product, user_agent_password, rets_request_id, session_id, version)
a1 = Digest::MD5.hexdigest "#{product}:#{user_agent_password}"
Digest::MD5.hexdigest "#{a1}:#{rets_request_id}:#{session_id}:#{version}"

0 comments on commit 5c176f0

Please sign in to comment.