loginsrv

Unnamed repository; edit this file 'description' to name the repository.
git clone git@jamesshield.xyz:repos/loginsrv.git
Log | Files | Refs | README | LICENSE

commit 21e85dc4f939428303b61ad3b4983288481be57a
parent 19d03fd412606f8b191be40d25b83429d23030c2
Author: Sebastian Mancke <s.mancke@tarent.de>
Date:   Sat,  6 May 2017 00:29:00 +0200

fixed setting of httponly

Diffstat:
Mlogin/handler.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/login/handler.go b/login/handler.go @@ -183,7 +183,7 @@ func (h *Handler) respondAuthenticated(w http.ResponseWriter, r *http.Request, u cookie := &http.Cookie{ Name: h.config.CookieName, Value: token, - HttpOnly: true, + HttpOnly: h.config.CookieHttpOnly, Path: "/", } http.SetCookie(w, cookie)