gitea/routers/api
zeripath 5ebd26d306
Return 404 NotFound if requested attachment does not exist (#20886) (#20941)
Backport #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>

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-08-25 11:30:41 +08:00
..
packages Allow multiple metadata files for Maven packages (#20674) (#20916) 2022-08-23 10:00:58 +08:00
v1 Return 404 NotFound if requested attachment does not exist (#20886) (#20941) 2022-08-25 11:30:41 +08:00