mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 19:05:32 -04:00
add MIME type of ico file
The server returns 500 error when requested '/favion.ico' The handler worked fine, but send_file has failed with - Missing MIME type for extension ".ico" so I register mime type for .ico file
This commit is contained in:
parent
2b3b2eb8ba
commit
d81334026b
@ -27,6 +27,7 @@ def register_mime_types
|
|||||||
".rar" => "application/x-rar-compressed",
|
".rar" => "application/x-rar-compressed",
|
||||||
".cbz" => "application/vnd.comicbook+zip",
|
".cbz" => "application/vnd.comicbook+zip",
|
||||||
".cbr" => "application/vnd.comicbook-rar",
|
".cbr" => "application/vnd.comicbook-rar",
|
||||||
|
".ico" => "image/x-icon",
|
||||||
}.each do |k, v|
|
}.each do |k, v|
|
||||||
MIME.register k, v
|
MIME.register k, v
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user