From f765ec55fe79c3e21957540f01c09f7170352220 Mon Sep 17 00:00:00 2001 From: Peter Mangiafico Date: Fri, 9 Jun 2023 12:32:38 -0700 Subject: [PATCH] remove not needed clean_content_type method --- app/jobs/deposit_job.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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