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:
parent
13e35a5922
commit
40d3fa5dfe
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ module ActiveStorage
|
|||
end
|
||||
|
||||
def headers_for_direct_upload(key, checksum:, **)
|
||||
{ "Content-Type" => "", "Content-MD5" => checksum }
|
||||
{ "Content-MD5" => checksum }
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue