Merge branch 'master' of https://github.com/astaxie/beego into valid
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -95,7 +95,7 @@ func (ctx *Context) SetCookie(name string, value string, others ...interface{}) | ... | @@ -95,7 +95,7 @@ func (ctx *Context) SetCookie(name string, value string, others ...interface{}) |
| 95 | if len(others) > 4 { | 95 | if len(others) > 4 { |
| 96 | fmt.Fprintf(&b, "; HttpOnly") | 96 | fmt.Fprintf(&b, "; HttpOnly") |
| 97 | } | 97 | } |
| 98 | ctx.SetHeader("Set-Cookie", b.String(), true) | 98 | ctx.SetHeader("Set-Cookie", b.String(), false) |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | var cookieNameSanitizer = strings.NewReplacer("\n", "-", "\r", "-") | 101 | var cookieNameSanitizer = strings.NewReplacer("\n", "-", "\r", "-") | ... | ... |
-
Please register or sign in to post a comment