Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Static .svg file is served as text/plain

#1473

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.

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

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Maxim Chernyak
    Maxim Chernyak
    • Title changed from Static .svg file is returned as text/plain to Static .svg file is served as text/plain

    November 25th, 2008 @ 09:49 PM

  2. josh
    josh
    • 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.

    December 20th, 2008 @ 05:46 PM