0

I have a manifest.webapp file in my app's public folder.

I can access it in normally, but the request came as text/plain, and I need it to be application/x-web-app-manifest+json.

I tried to put the following in my environment:

Mime::Type.register "application/x-web-app-manifest+json", :webapp

But it didn't work as expected. Probably I'm missing something.

How can I fix this?

Thanks in advance.

[EDIT]

Only for local tests, in remote I just changed the nginx mime.types file.

caarlos0
  • 20,020
  • 27
  • 85
  • 160

1 Answers1

0

You need to update your mime files of your web server (Nginx, Lighttpd or Apache).

I use this link for helping me : http://9elements.com/io/index.php/make-ogg-video-work-with-rails/

Progi1984
  • 498
  • 3
  • 12