forgejo/routers
zeripath 5ebd26d306
Return 404 NotFound if requested attachment does not exist () ()
Backport 

Add code to test if GetAttachmentByID returns an ErrAttachmentNotExist error
and return NotFound instead of InternalServerError

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-08-25 11:30:41 +08:00
..
api Return 404 NotFound if requested attachment does not exist () () 2022-08-25 11:30:41 +08:00
common Rework raw file http header logic () () 2022-07-30 18:37:02 +02:00
install Add Cache-Control header to html and api responses, add no-transform () () 2022-07-23 11:58:58 +01:00
private Add migrate repo archiver and packages storage support on command line () () 2022-08-18 09:27:56 +08:00
utils A better go code formatter, and now make fmt can run in Windows () 2021-11-17 20:34:35 +08:00
web Fix mirror address setting not working () () 2022-08-23 10:14:02 -04:00
init.go Initialize cron last () () 2022-07-15 13:44:22 -04:00