From 201c9b992f51fff2de2b8c8579a5134fcc6095d8 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 3 Mar 2024 07:17:46 -0500 Subject: [PATCH] fix: need to deref r to replace it --- api/s5/s5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index fc676d0..23881ce 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -272,7 +272,7 @@ func (s *S5API) Can(w http.ResponseWriter, r *http.Request) bool { ctx := context.WithValue(r.Context(), "cid", decodedCid) - r = r.WithContext(ctx) + *r = *r.WithContext(ctx) return true }