mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-30 00:00:43 -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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user