diff options
author | Hank Shen <swhbox@foxmail.com> | 2019-05-02 05:00:41 +0300 |
---|---|---|
committer | Hank Shen <swhbox@foxmail.com> | 2019-05-02 05:00:41 +0300 |
commit | 3650830381a19dad9676432160b11790f0638174 (patch) | |
tree | c426a64a2cd392e1e46bd3e1523af9e6067f57f9 | |
parent | dc272174175f7f9647ee7184d4eba13ee98859a1 (diff) |
update
-rw-r--r-- | sessions.go | 4 |
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 ---------------------------------------------------------------------- |