f46388fa by astaxie

setcookie set to unique. fix multi setcookie

1 parent a242f61b
...@@ -95,7 +95,7 @@ func (ctx *Context) SetCookie(name string, value string, others ...interface{}) ...@@ -95,7 +95,7 @@ func (ctx *Context) SetCookie(name string, value string, others ...interface{})
95 if len(others) > 4 { 95 if len(others) > 4 {
96 fmt.Fprintf(&b, "; HttpOnly") 96 fmt.Fprintf(&b, "; HttpOnly")
97 } 97 }
98 ctx.SetHeader("Set-Cookie", b.String(), true) 98 ctx.SetHeader("Set-Cookie", b.String(), false)
99 } 99 }
100 100
101 var cookieNameSanitizer = strings.NewReplacer("\n", "-", "\r", "-") 101 var cookieNameSanitizer = strings.NewReplacer("\n", "-", "\r", "-")
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!