Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/astaxie/beego into valid
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclesu committed Jul 24, 2013
2 parents d23700b + f46388f commit fb78d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", "-")
Expand Down

0 comments on commit fb78d83

Please sign in to comment.