1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:40:55 +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", "-")