Missing mime type

This commit is contained in:
Karel Pičman 2024-09-11 15:07:01 +02:00
parent c4d3f2aa3e
commit 2a7c421f5e

View File

@ -391,7 +391,7 @@ class DmsfFileRevision < ApplicationRecord
end
def protocol
@protocol ||= PROTOCOLS[mime_type.downcase]
@protocol ||= PROTOCOLS[mime_type.downcase] if mime_type
@protocol
end