gitea/modules/context
zeripath 0fe99cc00c
If rendering has failed due to a net.OpError stop rendering (attempt 2) () ()
Backport 

Unfortunately  does not work because a `*net.OpError` does not implement
the `Is` interface to make `errors.Is` work correctly - thus leading to the
irritating conclusion that a `*net.OpError` is not a `*net.OpError`.

Here we keep the `errors.Is` because presumably this will be fixed at
some point in the golang main source code but also we add a simply type
cast to also check.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
..
access_log.go Pass down SignedUserName down to AccessLogger context ()
api.go Refactor auth package ()
api_org.go Use a standalone struct name for Organization ()
api_test.go fix API link header ()
auth.go Refactor auth package ()
captcha.go Fix captcha ()
context.go If rendering has failed due to a net.OpError stop rendering (attempt 2) () ()
csrf.go Redirect on bad CSRF instead of presenting bad page ()
form.go Rename ctx.Form() to ctx.FormString() and move code into own file ()
org.go Allow adminstrator teams members to see other teams () ()
pagination.go Refactor admin user filter query parameters () ()
permission.go Move unit into models/unit/ ()
private.go Update docs and comments to remove macaron ()
repo.go Fix redirect when using lowercase reponame () ()
response.go Stop calling WriteHeader in Write ()
xsrf.go Move macaron to chi ()
xsrf_test.go Move macaron to chi ()