Permalink
Browse files

port [3351] to release branch

git-svn-id: https://wush.net/svn/rightscale/right_aws/release_1_7_0@3353 9f0cbaf6-ce18-0410-ad37-d14a22affa91
  • Loading branch information...
1 parent 7e7c531 commit fd87ca0a97302211cb262f2a86c2dc9bdb0dca9d @trbryan trbryan committed Apr 3, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sqs/right_sqs_gen2_interface.rb
@@ -130,10 +130,10 @@ def generate_post_request(action, param={}) # :nodoc:
request_hash.update(param)
request_data = request_hash.sort{|a,b| (a[0].to_s.downcase)<=>(b[0].to_s.downcase)}.to_s
request_hash['Signature'] = AwsUtils::sign(@aws_secret_access_key, request_data)
- request_body = request_hash.to_a.collect{|key,val| key.to_s + "=" + val.to_s }.join("&")
+ request_body = request_hash.to_a.collect{|key,val| CGI.escape(key.to_s) + "=" + CGI.escape(val.to_s) }.join("&")
request = Net::HTTP::Post.new(AwsUtils.URLencode(queue_uri))
request['Content-Type'] = 'application/x-www-form-urlencoded'
- request.body = AwsUtils.URLencode(request_body)
+ request.body = request_body
# prepare output hash
{ :request => request,
:server => @params[:server],

0 comments on commit fd87ca0

Please sign in to comment.