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 }