From b4161ed6f84819fb3a2d13d5c9e6872ef76d8128 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Thu, 7 Sep 2017 11:07:40 +0800 Subject: [PATCH] Update with latest session API --- redirect_back.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redirect_back.go b/redirect_back.go index d036a5b..965985a 100644 --- a/redirect_back.go +++ b/redirect_back.go @@ -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)