summaryrefslogtreecommitdiff
path: root/sessions.go
diff options
context:
space:
mode:
authorshen_wen_hui <shenwenhui@zuzuche.com>2019-05-05 13:04:31 +0300
committershen_wen_hui <shenwenhui@zuzuche.com>2019-05-05 13:04:31 +0300
commit903fdb004a08f8f0952487a2e329aa2373a1bd8c (patch)
treeac250a19e726e6c0ed94204b02f6f9e130df8e09 /sessions.go
parent820298e67e38f60df55ebdd80fd8a2b29027beca (diff)
parentaadf35331c6e2b5c6749dc37f7b8b7297101fd54 (diff)
Merge branch 'master' of https://github.com/admpub/sessions
Diffstat (limited to 'sessions.go')
-rw-r--r--sessions.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sessions.go b/sessions.go
index 0a318ed..865d952 100644
--- a/sessions.go
+++ b/sessions.go
@@ -193,8 +193,8 @@ func NewCookie(ctx echo.Context, name, value string) *http.Cookie {
}
// SetCookie for echo
-func SetCookie(ctx echo.Context, key string, value string) {
- ctx.SetCookie(key, value)
+func SetCookie(ctx echo.Context, key string, value string, args ...interface{}) {
+ ctx.SetCookie(key, value, args...)
}
// Error ----------------------------------------------------------------------