1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

modified to build correct signature

This commit is contained in:
Ariel Zavala 2010-09-18 15:57:37 -04:00 committed by geemus
parent 80a22a3d6b
commit e3e226d565

View file

@ -151,10 +151,11 @@ DATA
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"