discourse/discourse — pull request #2772 by mkayman (2014-09-09 16:56:31+00:00)
Title: Don't set content-disposition header for images

If this header is set for images, clicking the image link causes them to automatically download the file, rather than viewing it inside the browser. This commit forces this behavior only for uploads that aren't images