From 5de9d0f63e2bbf9f43ec1974d1acc147990a6cc7 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sun, 9 Aug 2020 05:46:02 +0300 Subject: [PATCH] comment fix as reported at #1574 --- NOTICE | 8 ++++---- context/context.go | 6 +++--- go.mod | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/NOTICE b/NOTICE index a6837ce9..53742667 100644 --- a/NOTICE +++ b/NOTICE @@ -6,7 +6,7 @@ The following 3rd-party software packages may be used by or distributed with iris. This document was automatically generated by FOSSA on 2020-5-8; any information relevant to third-party vendors listed below are collected using common, reasonable means. -Revision ID: 6844be57ea3a098ef28fce3468959bf5bb6f735a +Revision ID: 46a3a99adf457d30ea4aeb13ada45e895130d718 ----------------- ----------------- ------------------------------------------ Package Version Website @@ -26,9 +26,9 @@ Revision ID: 6844be57ea3a098ef28fce3468959bf5bb6f735a bluemonday 0a75d7616912ab9 https://github.com/microcosm-cc/bluemonday beb9cc6f7283ec1 917c61b135 - blocks 39dac49c58634f7 https://github.com/kataras/blocks - 9bc54fcd5c299da - fe08dbd738 + blocks 2782010d7127295 https://github.com/kataras/blocks + d72dc16632c7c0c + 01dfbf6ceb brotli c3da72aa01ed78f https://github.com/andybalholm/brotli 164593b9624fd91 d25082d2d2 diff --git a/context/context.go b/context/context.go index c5a73183..32cd8edb 100644 --- a/context/context.go +++ b/context/context.go @@ -4216,14 +4216,14 @@ func (ctx *Context) UpsertCookie(cookie *http.Cookie, options ...CookieOption) b // SetCookieKVExpiration is 365 days by-default // you can change it or simple, use the SetCookie for more control. // -// See CookieExpires` for more. +// See `CookieExpires` and `AddCookieOptions` for more. var SetCookieKVExpiration = time.Duration(8760) * time.Hour // SetCookieKV adds a cookie, requires the name(string) and the value(string). // -// By default it expires at 2 hours and it's added to the root path, +// By default it expires after 365 days and it is added to the root URL path, // use the `CookieExpires` and `CookiePath` to modify them. -// Alternatively: ctx.SetCookie(&http.Cookie{...}) +// Alternatively: ctx.SetCookie(&http.Cookie{...}) or ctx.AddCookieOptions(...) // // If you want to set custom the path: // ctx.SetCookieKV(name, value, iris.CookiePath("/custom/path/cookie/will/be/stored")) diff --git a/go.mod b/go.mod index 7035daa0..23b308c1 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( github.com/iris-contrib/pongo2 v0.0.1 github.com/iris-contrib/schema v0.0.2 github.com/json-iterator/go v1.1.10 - github.com/kataras/blocks v0.0.1 + github.com/kataras/blocks v0.0.2 github.com/kataras/golog v0.0.18 github.com/kataras/neffos v0.0.16 github.com/kataras/pio v0.0.8