fix: need to deref r to replace it
This commit is contained in:
parent
4483ad7ec5
commit
201c9b992f
|
@ -272,7 +272,7 @@ func (s *S5API) Can(w http.ResponseWriter, r *http.Request) bool {
|
||||||
|
|
||||||
ctx := context.WithValue(r.Context(), "cid", decodedCid)
|
ctx := context.WithValue(r.Context(), "cid", decodedCid)
|
||||||
|
|
||||||
r = r.WithContext(ctx)
|
*r = *r.WithContext(ctx)
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue