1
0
의 미러 https://github.com/astaxie/beego.git synced 2025-07-17 18:52:16 +00:00

code simplify

This commit is contained in:
JessonChan
2015-11-12 16:59:07 +08:00
부모 46fbeaadad
커밋 bc2195b07f

파일 보기

@@ -93,7 +93,7 @@ func (output *BeegoOutput) Cookie(name string, value string, others ...interface
if maxAge > 0 {
fmt.Fprintf(&b, "; Expires=%s; Max-Age=%d", time.Now().Add(time.Duration(maxAge)*time.Second).UTC().Format(time.RFC1123), maxAge)
} else if maxAge <= 0 {
} else {
fmt.Fprintf(&b, "; Max-Age=0")
}
}