Skip to content

Commit

Permalink
Update with latest session API
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu committed Sep 7, 2017
1 parent c21c412 commit b4161ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redirect_back.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (redirectBack *RedirectBack) Middleware(handler http.Handler) http.Handler
req = req.WithContext(context.WithValue(req.Context(), returnToKey, returnTo))

if !redirectBack.Ignore(req) && returnTo != req.URL.String() {
redirectBack.config.SessionManager.Add(req, "return_to", req.URL.String())
redirectBack.config.SessionManager.Add(w, req, "return_to", req.URL.String())
}

handler.ServeHTTP(w, req)
Expand Down

0 comments on commit b4161ed

Please sign in to comment.