From 6d96345499877680061b6df5638b4f73ed7e9129 Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 8 May 2013 11:01:32 +0800 Subject: [PATCH] fix session Secure --- session/session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/session.go b/session/session.go index 6551646a..536fcf50 100644 --- a/session/session.go +++ b/session/session.go @@ -65,7 +65,7 @@ func (manager *Manager) SessionStart(w http.ResponseWriter, r *http.Request) (se Value: url.QueryEscape(sid), Path: "/", HttpOnly: true, - Secure: true} + Secure: false} cookie.Expires = time.Now().Add(time.Duration(manager.maxlifetime) * time.Second) http.SetCookie(w, &cookie) r.AddCookie(&cookie)