mirror of
https://github.com/hkalexling/Mango.git
synced 2026-01-24 00:03:14 -05: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",
|
||||
".cbz" => "application/vnd.comicbook+zip",
|
||||
".cbr" => "application/vnd.comicbook-rar",
|
||||
".ico" => "image/x-icon",
|
||||
}.each do |k, v|
|
||||
MIME.register k, v
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user