mirror of
https://github.com/kovetskiy/mark.git
synced 2026-05-03 13:52:33 +00:00
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>