89dde6cd by astaxie

Merge branch 'develop' of https://github.com/astaxie/beego into develop

2 parents 5a529497 a78162e9
...@@ -40,7 +40,7 @@ func TestCache(t *testing.T) { ...@@ -40,7 +40,7 @@ func TestCache(t *testing.T) {
40 } 40 }
41 41
42 if err = bm.Decr("astaxie"); err != nil { 42 if err = bm.Decr("astaxie"); err != nil {
43 t.Error("Incr Error", err) 43 t.Error("Decr Error", err)
44 } 44 }
45 45
46 if v := bm.Get("astaxie"); v.(int) != 1 { 46 if v := bm.Get("astaxie"); v.(int) != 1 {
...@@ -77,7 +77,7 @@ func TestFileCache(t *testing.T) { ...@@ -77,7 +77,7 @@ func TestFileCache(t *testing.T) {
77 } 77 }
78 78
79 if err = bm.Decr("astaxie"); err != nil { 79 if err = bm.Decr("astaxie"); err != nil {
80 t.Error("Incr Error", err) 80 t.Error("Decr Error", err)
81 } 81 }
82 82
83 if v := bm.Get("astaxie"); v.(int) != 1 { 83 if v := bm.Get("astaxie"); v.(int) != 1 {
......
...@@ -73,7 +73,8 @@ func (st *CookieSessionStore) SessionRelease(w http.ResponseWriter) { ...@@ -73,7 +73,8 @@ func (st *CookieSessionStore) SessionRelease(w http.ResponseWriter) {
73 Value: url.QueryEscape(str), 73 Value: url.QueryEscape(str),
74 Path: "/", 74 Path: "/",
75 HttpOnly: true, 75 HttpOnly: true,
76 Secure: cookiepder.config.Secure} 76 Secure: cookiepder.config.Secure,
77 MaxAge: cookiepder.config.Maxage}
77 http.SetCookie(w, cookie) 78 http.SetCookie(w, cookie)
78 return 79 return
79 } 80 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!