Missing mime type
This commit is contained in:
parent
c4d3f2aa3e
commit
2a7c421f5e
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user