0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 06:34:37 +01:00
gitea/modules
zeripath 730b9a5a62
Ensure responses are context.ResponseWriters (#19843)
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 #19839

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-05-31 21:27:44 +01:00
..
activitypub
analyze
appstate
auth
avatar
base
cache Update go-chi/cache to utilize Ping() (#19719) 2022-05-15 20:43:27 +02:00
charset Detect truncated utf-8 characters at the end of content as still representing utf-8 (#19773) 2022-05-21 14:06:24 +01:00
container
context Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
convert Nuke the incorrect permission report on /api/v1/notifications (#19761) 2022-05-20 18:57:49 +02:00
csv
doctor Fix inconsistency in doctor output (#19836) 2022-05-31 14:49:40 -04:00
emoji
eventsource
generate
git
gitgraph Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
graceful
hcaptcha
highlight
hostmatcher
httpcache
httplib
indexer Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
json
lfs
log
markup
metrics
migration
nosql
notification Move access and repo permission to models/perm/access (#19350) 2022-05-11 12:09:36 +02:00
options
packages
paginator
password
pprof
private
process
proxy
public
queue
recaptcha
references
repository Update go tool dependencies (#19676) 2022-05-10 23:55:54 +02:00
secret
session
setting Enable packages by default again (as described by docs) (#19746) 2022-05-20 02:48:42 +02:00
ssh Move almost all functions' parameter db.Engine to context.Context (#19748) 2022-05-20 22:08:52 +08:00
storage
structs
svg
sync
templates Move access and repo permission to models/perm/access (#19350) 2022-05-11 12:09:36 +02:00
test Move access and repo permission to models/perm/access (#19350) 2022-05-11 12:09:36 +02:00
timeutil
translation
typesniffer Fix raw endpoint PDF file headers (#19825) 2022-05-28 18:10:14 +03:00
updatechecker
upload
uri
user
util Update go tool dependencies (#19676) 2022-05-10 23:55:54 +02:00
validation
web Ensure responses are context.ResponseWriters (#19843) 2022-05-31 21:27:44 +01:00