# File lib/action_controller/http_authentication.rb, line 229 def decode_credentials(header) header.to_s.gsub(/^Digest\s+/,'').split(',').inject({}.with_indifferent_access) do |hash, pair| key, value = pair.split('=', 2) hash[key.strip] = value.to_s.gsub(/^"|"$/,'').gsub(/'/, '') hash end end