diff --git a/Gemfile.lock b/Gemfile.lock index 74640c774..8d1603296 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -350,7 +350,7 @@ GEM public_suffix (5.0.1) puma (5.6.5) nio4r (~> 2.0) - racc (1.7.0) + racc (1.7.1) rack (2.2.7) rack-test (2.1.0) rack (>= 1.3) @@ -466,7 +466,7 @@ GEM ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) rubyzip (2.3.2) - sdr-client (2.4.0) + sdr-client (2.5.0) activesupport cocina-models (~> 0.90.0) config diff --git a/app/jobs/deposit_job.rb b/app/jobs/deposit_job.rb index c284e4956..8d57b6550 100644 --- a/app/jobs/deposit_job.rb +++ b/app/jobs/deposit_job.rb @@ -74,17 +74,12 @@ def build_file_metadata(blobs_map) SdrClient::Deposit::Files::DirectUploadRequest.new( checksum: blob.checksum, byte_size: blob.byte_size, - content_type: clean_content_type(blob.content_type), + content_type: blob.content_type, filename: blob.filename.to_s ) end end - def clean_content_type(content_type) - # ActiveStorage is expecting "application/x-stata-dta" not "application/x-stata-dta;version=14" - content_type&.split(';')&.first - end - def blob_filepath_for(blob) ActiveStorage::Blob.service.path_for(blob.key) end