a fork of iceshrimp.net but a tweaked frontend to my personal liking. waow
fediverse social-media social iceshrimp fedi
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[backend/federation] Use Document mediaType instead of HTTP Content-Type header where available

Certain CDN setups can return incorrect Content-Type headers for files. If the attached Document
explicitly has a mediaType set, assume that's the correct mime type, as the code setting that
likely has more knowledge on the purpose of the file.

Kopper b6575869 5f14c4ed

+1 -1
+1 -1
Iceshrimp.Backend/Core/Services/DriveService.cs
··· 110 110 Filename = filename, 111 111 IsSensitive = sensitive, 112 112 Comment = description, 113 - MimeType = CleanMimeType(res.Content.Headers.ContentType?.MediaType ?? mimeType) 113 + MimeType = CleanMimeType(mimeType ?? res.Content.Headers.ContentType?.MediaType) 114 114 }; 115 115 116 116 var input = await res.Content.ReadAsStreamAsync();