mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-09 02:47:29 +02:00
The uploader re-encodes the image (PNG only when the source was PNG, WebP when EnableWebPEncoding is on, JPEG otherwise) but stores it under the caller's extension, so a .gif file can hold JPEG bytes. Deriving Content-Type from the extension made getAvatar and /UserImage announce a type they were not sending. |
||
|---|---|---|
| .. | ||
| avatar.go | ||
| avatar_test.go | ||
| headers.go | ||
| headers_test.go | ||
| imghttp_suite_test.go | ||