comment fix as reported at #1574

This commit is contained in:
Gerasimos (Makis) Maropoulos 2020-08-09 05:46:02 +03:00
parent 46a3a99adf
commit 5de9d0f63e
No known key found for this signature in database
GPG Key ID: 5DBE766BD26A54E7
3 changed files with 8 additions and 8 deletions

8
NOTICE
View File

@ -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

View File

@ -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"))

2
go.mod
View File

@ -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