Can't download attached js file

Implementation guide

Not completely sure where to fix this - it's probably simple but would require some investigation where the fix should go. Basically we want to serve .js files as plain/text

Summary

A js file can be attached to an issue, but any attempts to download it causes error 422.

Steps to reproduce

  1. Attach a js file
  2. Download it

Example Project

jquery-3.2.1.slim.min.js

What is the current bug behavior?

Error 422

What is the expected correct behavior?

File downloaded or more adequate error message.

Edited by Brett Walker