summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHank Shen <swhbox@foxmail.com>2019-05-02 05:00:41 +0300
committerHank Shen <swhbox@foxmail.com>2019-05-02 05:00:41 +0300
commit3650830381a19dad9676432160b11790f0638174 (patch)
treec426a64a2cd392e1e46bd3e1523af9e6067f57f9
parentdc272174175f7f9647ee7184d4eba13ee98859a1 (diff)
update
-rw-r--r--sessions.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sessions.go b/sessions.go
index 2d19c8a..c0139a6 100644
--- a/sessions.go
+++ b/sessions.go
@@ -194,8 +194,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 ----------------------------------------------------------------------