summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jacob <adam@opscode.com>2009-08-11 21:50:44 -0700
committerAdam Jacob <adam@opscode.com>2009-08-11 21:50:44 -0700
commit170387133975b703b98b8ee8bf885f208d5d9631 (patch)
tree7c5888df10c7bb97c4cff33308a0155a874c5839
parentff477d19d0cb02f8e616393bcd7ed9c61186d68d (diff)
downloadmixlib-authentication-170387133975b703b98b8ee8bf885f208d5d9631.tar.gz
Switching to using strings in the headers..
-rw-r--r--.gitignore1
-rw-r--r--lib/mixlib/authentication/signedheaderauth.rb10
2 files changed, 6 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore
index 01d0a08..6ee20c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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}"