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.