Merge pull request #81 from fossyy/staging
Remove unnecessary context value call
This commit is contained in:
@ -87,7 +87,6 @@ func Auth(next http.HandlerFunc, w http.ResponseWriter, r *http.Request) {
|
|||||||
case session.Authorized:
|
case session.Authorized:
|
||||||
ctx := context.WithValue(r.Context(), "user", user)
|
ctx := context.WithValue(r.Context(), "user", user)
|
||||||
req := r.WithContext(ctx)
|
req := r.WithContext(ctx)
|
||||||
r.Context().Value("user")
|
|
||||||
next.ServeHTTP(w, req)
|
next.ServeHTTP(w, req)
|
||||||
return
|
return
|
||||||
case session.Unauthorized:
|
case session.Unauthorized:
|
||||||
|
Reference in New Issue
Block a user