mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 02:10:50 +00:00
Merge branch 'master' of https://github.com/astaxie/beego into valid
This commit is contained in:
commit
fb78d83ec3
@ -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", "-")
|
||||
|
Loading…
Reference in New Issue
Block a user