mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-17 04:31:38 +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)
|
result := UpdateFromRepository(ctx, webRoot, repoURL, auth.branch)
|
||||||
resultChan <- result
|
resultChan <- result
|
||||||
observeSiteUpdate("webhook", &result)
|
observeSiteUpdate("webhook", &result)
|
||||||
}(context.Background())
|
}(r.Context())
|
||||||
|
|
||||||
var result UpdateResult
|
var result UpdateResult
|
||||||
select {
|
select {
|
||||||
|
|||||||
Reference in New Issue
Block a user