diff options
author | George Claghorn <george@basecamp.com> | 2018-02-26 11:35:13 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-02-26 12:00:24 -0500 |
commit | 8a79d04e4dd7f0fc3c03fca905f86c03bc91ab11 (patch) | |
tree | 2343cddbfd921ac523afd8a3ace7eb920f0cadf5 /activestorage/test | |
parent | 690d2a49465cf18b93cf66b77967cb1236c881cb (diff) | |
download | rails-8a79d04e4dd7f0fc3c03fca905f86c03bc91ab11.tar.gz rails-8a79d04e4dd7f0fc3c03fca905f86c03bc91ab11.tar.bz2 rails-8a79d04e4dd7f0fc3c03fca905f86c03bc91ab11.zip |
Avoid specifying content types for direct uploads to Google Cloud Storage
Fix customizing the download Content-Type for a directly-uploaded blob via a signed URL. See e8286ee.
Diffstat (limited to 'activestorage/test')
-rw-r--r-- | activestorage/test/service/gcs_service_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/test/service/gcs_service_test.rb b/activestorage/test/service/gcs_service_test.rb index 7efcd60fb7..fc2d9d0fa7 100644 --- a/activestorage/test/service/gcs_service_test.rb +++ b/activestorage/test/service/gcs_service_test.rb @@ -19,7 +19,7 @@ if SERVICE_CONFIGURATIONS[:gcs] uri = URI.parse url request = Net::HTTP::Put.new uri.request_uri request.body = data - request.add_field "Content-Type", "text/plain" + request.add_field "Content-Type", "" request.add_field "Content-MD5", checksum Net::HTTP.start(uri.host, uri.port, use_ssl: true) do |http| http.request request |