This project is archived and is in readonly mode.

#1473 ✓wontfix
Maxim Chernyak

Static .svg file is served as text/plain

Reported by Maxim Chernyak | November 25th, 2008 @ 09:49 PM | in 2.x

When accessing static .svg files which reside in public directory, the response is in text/plain. I assume this could be the case with other not-very-popular extensions, and probably due to recent revamping of server configs, rack, and autoload requires.

Also, Mime::Type.register does not solve this problem. Everything goes back to normal if I revert my project a few rails commits backward.

Comments and changes to this ticket

  • Maxim Chernyak

    Maxim Chernyak November 25th, 2008 @ 09:49 PM

    • Title changed from “Static .svg file is returned as text/plain ” to “Static .svg file is served as text/plain ”
  • josh

    josh December 20th, 2008 @ 05:46 PM

    • State changed from “new” to “wontfix”

    It shouldn't be to be of an issue since apache, ngnix, or mongrel should be doing the static file serving itself.

    If we want to fix in script/server, we'll have to patch rack upstream. See Rack::File.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages