From 786cd25cbfd34bc5a211f700e3afaccfe1e0856c Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Fri, 3 Jun 2011 11:37:08 -0500 Subject: [PATCH] Use inline for all text and images --- lib/linguist/blob_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/blob_helper.rb b/lib/linguist/blob_helper.rb index d6f18852..550a0a1c 100644 --- a/lib/linguist/blob_helper.rb +++ b/lib/linguist/blob_helper.rb @@ -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)}"