Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
:action should be able to be a symbol i.e. :url_info
  • Loading branch information
Daniel committed Apr 29, 2010
1 parent 8c33858 commit 37f7ed5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/amazon/awis.rb
Expand Up @@ -41,7 +41,7 @@ class Awis

def initialize(opts={})
@options = {
:action => "UrlInfo",
:action => :url_info,
}
@options.merge!(opts)

Expand Down Expand Up @@ -150,7 +150,7 @@ def log(s)
def prepare_url(domain, response_group)
timestamp = ( Time::now ).utc.strftime("%Y-%m-%dT%H:%M:%S.000Z")
secret_key = @@config[:aws_secret_key]
action = options[:action]
action = camelize(options[:action].to_s)
signature = Base64.encode64( OpenSSL::HMAC.digest( OpenSSL::Digest::Digest.new( "sha1" ), secret_key, action + timestamp)).strip
url = URI.parse("http://awis.amazonaws.com/?" +
{
Expand Down

0 comments on commit 37f7ed5

Please sign in to comment.