1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-18 16:14:26 +00:00
gitea/modules/context
zeripath 91e6a7f7ea
api.Context.NotFound(...) should tolerate nil (#11288) (#11306)
There is an unfortunate signature change with the api.Context
NotFound function; whereas the normal modules/context/Context
NotFound function requires an error or nil, the api.Context
variant will panic with an NPE if a nil is provided.

This PR will allow api.Context.NotFound to tolerate a being
passed a nil.

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-05-05 17:48:24 -05:00
..
api_org.go Golint fixed for modules/context 2016-11-25 14:53:59 +08:00
api_test.go fix API link header (#7298) 2019-06-26 16:51:32 +08:00
api.go api.Context.NotFound(...) should tolerate nil (#11288) (#11306) 2020-05-05 17:48:24 -05:00
auth.go Use Req.URL.RequestURI() to cope with FCGI urls (#9473) 2019-12-24 00:11:12 +00:00
context.go Prevent redirect to Host (#9678) (#9679) 2020-01-09 16:37:37 -05:00
org.go Team permission to create repository in organization (#8312) 2019-11-20 19:27:49 +08:00
pagination.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
panic.go Use gitea forked macaron (#7933) 2019-08-23 12:40:29 -04:00
permission.go Use Req.URL.RequestURI() to cope with FCGI urls (#9473) 2019-12-24 00:11:12 +00:00
repo.go [Backport] Fix release counter on API repository info (#10968) (#10996) 2020-04-06 18:13:12 -04:00