diff options
author | Adam Jacob <adam@opscode.com> | 2009-08-11 21:50:44 -0700 |
---|---|---|
committer | Adam Jacob <adam@opscode.com> | 2009-08-11 21:50:44 -0700 |
commit | 170387133975b703b98b8ee8bf885f208d5d9631 (patch) | |
tree | 7c5888df10c7bb97c4cff33308a0155a874c5839 | |
parent | ff477d19d0cb02f8e616393bcd7ed9c61186d68d (diff) | |
download | mixlib-authentication-170387133975b703b98b8ee8bf885f208d5d9631.tar.gz |
Switching to using strings in the headers..
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | lib/mixlib/authentication/signedheaderauth.rb | 10 |
2 files changed, 6 insertions, 5 deletions
@@ -1 +1,2 @@ pkg/ +*.swp diff --git a/lib/mixlib/authentication/signedheaderauth.rb b/lib/mixlib/authentication/signedheaderauth.rb index 21ff2ed..687f56d 100644 --- a/lib/mixlib/authentication/signedheaderauth.rb +++ b/lib/mixlib/authentication/signedheaderauth.rb @@ -35,11 +35,11 @@ module Mixlib signature = Base64.encode64(private_key.private_encrypt(canonicalize_request)).chomp.gsub!(/\n/,"\n\t") header_hash = { - :x_ops_sign=>SIGNING_DESCRIPTION, - :x_ops_userid=>user_id, - :x_ops_timestamp=> canonical_time, - :x_ops_content_hash=>@hashed_body, - :authorization=>signature, + "X-Ops-Sign" => SIGNING_DESCRIPTION, + "X-Ops-Userid" => user_id, + "X-Ops-Timestamp" => canonical_time, + "X-Ops-Content-Hash" =>@hashed_body, + "Authorization" => signature, } Mixlib::Authentication::Log.debug "Header hash: #{header_hash.inspect}" |