Skip to content
Snippets Groups Projects
Commit cc85703a authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Fix: Updated dependencies

parent 76c716a8
No related branches found
No related tags found
1 merge request!12Sprint/2020 22
......@@ -156,7 +156,7 @@ namespace Coscine.Api.Blob.Controllers
var response = await resourceTypeDefinition.LoadEntry(resource.Id.ToString(), path, null, resourceTypeOptions);
new FileExtensionContentTypeProvider().TryGetContentType(path.Substring(path.LastIndexOf("/")), out string contentType);
LogAnalytics("Download File", resourceId, path.Substring(1), user);
return File(response, contentType);
return File(response, contentType ?? "application/octet-stream");
}
catch
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment