1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove blank Content-Type from GCS direct upload headers

Since we started clearing the client-side blob's type in e0867b3, we no longer need to set a blank Content-Type header before issuing the direct upload request. Fixes that Safari 9 would combine the blank Content-Type header with the blank blob type to produce a Content-Type header containing a single comma, invalidating the request.
This commit is contained in:
George Claghorn 2018-03-06 09:17:59 -05:00
parent 13e35a5922
commit 40d3fa5dfe

View file

@ -104,7 +104,7 @@ module ActiveStorage
end
def headers_for_direct_upload(key, checksum:, **)
{ "Content-Type" => "", "Content-MD5" => checksum }
{ "Content-MD5" => checksum }
end
private