lib/aws/s3/presigned_post.rb in aws-sdk-1.0.4 vs lib/aws/s3/presigned_post.rb in aws-sdk-1.1.0
- old
+ new
@@ -315,10 +315,10 @@
def policy
json = {
"expiration" => format_expiration,
"conditions" => generate_conditions
}.to_json
- Base64.encode64(json)
+ Base64.encode64(json).tr("\n","")
end
# @return [Hash] A collection of form fields (including a
# signature and a policy) that can be used to POST data to
# S3. Additional form fields may be added after the fact as