1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-28 14:24:12 +00:00

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

This commit is contained in:
miraclesu 2013-07-24 12:37:07 +08:00
commit fb78d83ec3

View File

@ -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", "-")