Commit f46388fa authored by astaxie's avatar astaxie

setcookie set to unique. fix multi setcookie

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