mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-14 11:11:35 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user