SVG images attached to MRs not served correctly

Summary

When an SVG image is attached to a MR, it shows up correctly in the MR. However, if you try to go to that image's address directly in firefox or chrome, it will not view the image but instead simply try to download it. MIME types appear to be correct so something else must be wrong.

Steps to reproduce

  1. Visit the following MR on the Freedesktop.org gitlab instance: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/738
  2. Click on on one of the flame graphs

Example Project

Just click the image below

cars2.svg

What is the current bug behavior?

Firefox or Chrome attempts to download the SVG file

What is the expected correct behavior?

Firefox or Chrome should just show you the image and allow you to interact with it (that's an interactive SVG).