Skip to content

Commit

Permalink
modified to build correct signature
Browse files Browse the repository at this point in the history
  • Loading branch information
arielo authored and geemus committed Sep 24, 2010
1 parent 80a22a3 commit e3e226d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fog/google/storage.rb
Expand Up @@ -151,10 +151,11 @@ def signature(params)

google_headers, canonical_google_headers = {}, ''
for key, value in params[:headers]
if key[0..5] == 'x-goog-'
if key[0..6] == 'x-goog-'
google_headers[key] = value
end
end

google_headers = google_headers.sort {|x, y| x[0] <=> y[0]}
for key, value in google_headers
canonical_google_headers << "#{key}:#{value}\n"
Expand Down

0 comments on commit e3e226d

Please sign in to comment.