1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-02 08:14:25 +00:00
gitea/routers
zeripath a4a6a5987b
Return 404 NotFound if requested attachment does not exist (#20886)
Add code to test if GetAttachmentByID returns an ErrAttachmentNotExist error
and return NotFound instead of InternalServerError

Fix #20884

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-08-24 13:36:21 +01:00
..
api Return 404 NotFound if requested attachment does not exist (#20886) 2022-08-24 13:36:21 +01:00
common Rework raw file http header logic (#20484) 2022-07-29 17:26:55 +02:00
install Rework mailer settings (#18982) 2022-08-02 13:24:18 +08:00
private Add migrate repo archiver and packages storage support on command line (#20757) 2022-08-16 12:05:15 +08:00
utils refactor webhook *NewPost (#20729) 2022-08-11 17:48:23 +02:00
web refactor webhook *EditPost (#20780) 2022-08-23 02:52:35 -04:00
init.go Refactor legacy git init (#20376) 2022-08-09 11:22:24 +08:00