mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Use blob basename
This commit is contained in:
@@ -23,7 +23,7 @@ module Linguist
|
||||
def disposition
|
||||
case mime_type
|
||||
when 'application/octet-stream', 'application/java-archive'
|
||||
"attachment; filename=#{EscapeUtils.escape_url(name.to_s)}"
|
||||
"attachment; filename=#{EscapeUtils.escape_url(name.basename)}"
|
||||
else
|
||||
'inline'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user