fix: need to deref r to replace it

This commit is contained in:
Derrick Hammer 2024-03-03 07:17:46 -05:00
parent 4483ad7ec5
commit 201c9b992f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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
}