grasp: pass request context to repoExists().

This commit is contained in:
fiatjaf
2025-12-06 03:50:01 -03:00
parent 0706140491
commit 34a509c9d7
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ func (gs *GraspServer) handleGitUploadPack(
repoPath := gs.getRepositoryPath(pubkey, repoName)
// for upload-pack (pull), check if repository exists
if !gs.repoExists(pubkey, repoName) {
if !gs.repoExists(r.Context(), pubkey, repoName) {
w.Header().Set("content-type", "text/plain; charset=UTF-8")
w.WriteHeader(404)
fmt.Fprintf(w, "repository announcement event not found during upload-pack\n")