Added MediaTypes TMVCMediaType.IMAGE_X_ICON

This commit is contained in:
Daniele Teti 2020-04-02 15:28:06 +02:00
parent 447ee2df81
commit 2273c88b00
2 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,7 @@ type
TEXT_CSV = 'text/csv'; TEXT_CSV = 'text/csv';
IMAGE_JPEG = 'image/jpeg'; IMAGE_JPEG = 'image/jpeg';
IMAGE_X_PNG = 'image/x-png'; IMAGE_X_PNG = 'image/x-png';
IMAGE_X_ICON = 'image/x-icon';
IMAGE_PNG = 'image/png'; IMAGE_PNG = 'image/png';
APPLICATION_PDF = 'application/pdf'; APPLICATION_PDF = 'application/pdf';
APPLICATION_X_PDF = 'application/x-pdf'; APPLICATION_X_PDF = 'application/x-pdf';

View File

@ -1964,6 +1964,7 @@ begin
FMediaTypes.Add('.jpg', TMVCMediaType.IMAGE_JPEG); FMediaTypes.Add('.jpg', TMVCMediaType.IMAGE_JPEG);
FMediaTypes.Add('.jpeg', TMVCMediaType.IMAGE_JPEG); FMediaTypes.Add('.jpeg', TMVCMediaType.IMAGE_JPEG);
FMediaTypes.Add('.png', TMVCMediaType.IMAGE_PNG); FMediaTypes.Add('.png', TMVCMediaType.IMAGE_PNG);
FMediaTypes.Add('.ico', TMVCMediaType.IMAGE_X_ICON);
FMediaTypes.Add('.appcache', TMVCMediaType.TEXT_CACHEMANIFEST); FMediaTypes.Add('.appcache', TMVCMediaType.TEXT_CACHEMANIFEST);
Log.Info('EXIT: Config default values', LOGGERPRO_TAG); Log.Info('EXIT: Config default values', LOGGERPRO_TAG);