From 357b3e6ed92be4fbed3e546b1db26ebba6b23c4b Mon Sep 17 00:00:00 2001 From: Jonathan Schuster Date: Sun, 26 Apr 2026 13:53:36 +0200 Subject: [PATCH] fix: reject directories in _safe_path; remove Content-Disposition from _stream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _safe_path now uses path.is_file() instead of path.exists() so empty or directory-traversal filenames never resolve to a directory and get served as a 0-byte octet-stream download. This was the cause of the browser downloading a file named 'recordings' with 0 bytes when Play was clicked. Removed Content-Disposition: inline from _stream responses — it is not needed for