Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

simplify method

  • Loading branch information...
commit 5c176f08d52230f6898e60d53d296aaeacbda0e5 1 parent 9ba0148
@dougcole dougcole authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/rets/authentication.rb
View
4 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}"
Please sign in to comment.
Something went wrong with that request. Please try again.