Manuel Rüger 9e7f2cf9d5 fix: check os.ReadFile error before using file contents
http.DetectContentType was called with potentially nil/empty contents
when ReadFile failed; the error was only checked afterward. Move the
error check immediately after ReadFile so bad data is never used.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-16 19:18:29 +01:00
..
2024-09-29 00:13:04 +02:00
2025-09-15 19:01:21 +02:00