fix wait group for real. stared right at it, didn't fix it.
Ted Unangst tedu@tedunangst.com
Fri, 15 Dec 2023 23:24:50 -0500
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
web.go
→
web.go
@@ -2748,8 +2748,8 @@ }
} func addcspheaders(next http.Handler) http.Handler { - requestWG.Add(1) return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + requestWG.Add(1) defer requestWG.Done() policy := "default-src 'none'; script-src 'self'; connect-src 'self'; style-src 'self'; img-src 'self'; media-src 'self'" if develMode {