diff --git a/app/controllers/downloads_controller.rb b/app/controllers/downloads_controller.rb index d721a3bbaa..81108e9a9c 100644 --- a/app/controllers/downloads_controller.rb +++ b/app/controllers/downloads_controller.rb @@ -13,6 +13,8 @@ def show end def send_content + # Only append auth tokens to HLS if necessary, otherwise let normal behavior + # take care of sending it. return send_hls if file_desc.mime_type.first.to_s == "application/x-mpegURL" && params[:auth_token].present? prepare_file_headers # Necessary until a Rack version is released which allows for multiple diff --git a/app/resources/nested_resources/file_metadata.rb b/app/resources/nested_resources/file_metadata.rb index 31cfefb2fb..5618f524a3 100644 --- a/app/resources/nested_resources/file_metadata.rb +++ b/app/resources/nested_resources/file_metadata.rb @@ -42,6 +42,7 @@ def derivative? use.include?(Valkyrie::Vocab::PCDMUse.ServiceFile) end + # ServiceFilePartial isn't part of the PCDMUse vocabulary - this is made up def derivative_partial? use.include?(Valkyrie::Vocab::PCDMUse.ServiceFilePartial) end