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

Added missing header

Google's [CORS implementation](https://developers.google.com/storage/docs/cross-origin) implements a canonical resource parameter that was not included in the hashed headers.
This commit is contained in:
Stephen von Takach 2012-10-16 11:00:55 +12:00
parent 2e0d13d4be
commit 8d59509687

View file

@ -243,7 +243,7 @@ DATA
canonical_resource << "#{params[:path]}"
canonical_resource << '?'
for key in (params[:query] || {}).keys
if ['acl', 'location', 'logging', 'requestPayment', 'torrent', 'versions', 'versioning'].include?(key)
if ['acl', 'cors', 'location', 'logging', 'requestPayment', 'torrent', 'versions', 'versioning'].include?(key)
canonical_resource << "#{key}&"
end
end