mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Use inline for all text and images
This commit is contained in:
@@ -62,7 +62,7 @@ module Linguist
|
||||
#
|
||||
# Returns a content disposition String.
|
||||
def disposition
|
||||
if image? || viewable?
|
||||
if text? || image?
|
||||
'inline'
|
||||
else
|
||||
"attachment; filename=#{EscapeUtils.escape_url(pathname.basename)}"
|
||||
|
||||
Reference in New Issue
Block a user