Kentico / AzureStorageProvider

Replacement for standard Kentico EMS provider adding metadata caching support.
MIT License
5 stars 3 forks source link

FileHandler.cs (CMSPages/GetAzureProviderFile.aspx) does not set correct mime type #11

Closed z7paul closed 5 years ago

z7paul commented 5 years ago

Brief bug description

In the FileHandler.cs (CMSPages/GetAzureProviderFile.aspx), the mime type is being incorrectly set (based on the path) i.e. SetResponseContentType(path);

Expected behavior

The SetResponseContentType method is expecting a mime type. e.g. SetResponseContentType(MimeMapping.GetMimeMapping(path));

ondrabus commented 5 years ago

Fixed in 75337654fe2b587dcefa1bbaae4c16503a8be1d1