Fix loss of context in POST handler.

This caused the principal to not be available when creating the new
audit record.
This commit is contained in:
Catherine
2025-12-06 00:36:46 +00:00
parent ed2d853cbe
commit 9c6f735df0

View File

@@ -762,7 +762,7 @@ func postPage(w http.ResponseWriter, r *http.Request) error {
result := UpdateFromRepository(ctx, webRoot, repoURL, auth.branch)
resultChan <- result
observeSiteUpdate("webhook", &result)
}(context.Background())
}(r.Context())
var result UpdateResult
select {