gitea/modules/web
zeripath 730b9a5a62
Ensure responses are context.ResponseWriters ()
In order for web.Wrap to be able to detect if a response has been written
we need to wrap any non-context.ResponseWriters as a such. Otherwise
responses will be incorrectly detected as non-written to and handlers can
double run.

In the case of GZip this handler will change the response to a non-context.RW
and this failure to correctly detect response writing causes fallthrough and
a NPE.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
..
middleware Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. ()
routing Add Goroutine stack inspector to admin/monitor ()
route.go format with gofumpt ()
route_test.go Update HTTP status codes to modern codes ()
wrap.go Refactor Router Logger ()
wrap_convert.go Ensure responses are context.ResponseWriters ()