mirror of
https://github.com/usememos/memos.git
synced 2026-11-19 10:29:11 +01:00
3feb08737b
WriteError now logs the cause of a server error, which the public JSON body never carries, unless the client has already gone away. The header reset and envelope move into a shared writer the panic recoverer uses too, so one failure logs once. The doc comment states the header contract. A local attachment whose file is gone from disk answers a JSON 404 like every other storage failure instead of net/http's plain-text page. The export handler no longer strips the archive headers itself and logs only the committed case the wrapper cannot see. The fake S3 and local storage test setups are shared helpers, and the 416 test pins that Content-Range survives the header reset.