completelynovel-amazon-product-advertising-api 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -80,7 +80,7 @@ module AmazonProductAdvertisingApi #:nodoc:
|
|
80
80
|
hmac = HMAC::SHA256.new(AmazonProductAdvertisingApi::Base.secret_access_key)
|
81
81
|
hmac.update("GET\n#{unsigned_uri.host}\n#{unsigned_uri.path}\n#{unsigned_uri.query}")
|
82
82
|
|
83
|
-
self.request_uri = URI.parse("#{unsigned_uri}&Signature=#{Base64.encode64(hmac.digest).chomp}")
|
83
|
+
self.request_uri = URI.parse("#{unsigned_uri}&Signature=#{CGI::escape(Base64.encode64(hmac.digest).chomp)}")
|
84
84
|
|
85
85
|
result = Net::HTTP::get_response(self.request_uri)
|
86
86
|
raise("Error connecting to Amazon - #{result.to_s}") if !result.kind_of?(Net::HTTPSuccess)
|