mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 19:20:59 +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 {
|
if len(others) > 4 {
|
||||||
fmt.Fprintf(&b, "; HttpOnly")
|
fmt.Fprintf(&b, "; HttpOnly")
|
||||||
}
|
}
|
||||||
ctx.SetHeader("Set-Cookie", b.String(), true)
|
ctx.SetHeader("Set-Cookie", b.String(), false)
|
||||||
}
|
}
|
||||||
|
|
||||||
var cookieNameSanitizer = strings.NewReplacer("\n", "-", "\r", "-")
|
var cookieNameSanitizer = strings.NewReplacer("\n", "-", "\r", "-")
|
||||||
|
Loading…
Reference in New Issue
Block a user