From 8a79d04e4dd7f0fc3c03fca905f86c03bc91ab11 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Mon, 26 Feb 2018 11:35:13 -0500 Subject: 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. --- activestorage/test/service/gcs_service_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activestorage/test') 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 -- cgit v1.2.3