Commit fb78d83e authored by miraclesu's avatar miraclesu

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

parents d23700b9 f46388fa
......@@ -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