From 3a52261f716ec2d24f78a27b191d745d07829125 Mon Sep 17 00:00:00 2001 From: geemus Date: Mon, 7 Jun 2010 10:31:12 -0700 Subject: [PATCH] [s3] query should default to empty hash --- lib/fog/aws/s3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/aws/s3.rb b/lib/fog/aws/s3.rb index a651f1715..977abd33c 100644 --- a/lib/fog/aws/s3.rb +++ b/lib/fog/aws/s3.rb @@ -209,7 +209,7 @@ DATA end canonical_resource << "#{params[:path]}" canonical_resource << '?' - for key in params[:query].keys + for key in (params[:query] || {}).keys if ['acl', 'location', 'logging', 'requestPayment', 'torrent', 'versions', 'versioning'].include?(key) canonical_resource << "#{key}&" end