Skip to content

Commit 5de9d0f

Browse files
committed
comment fix as reported at #1574
1 parent 46a3a99 commit 5de9d0f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

NOTICE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
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.
88

9-
Revision ID: 6844be57ea3a098ef28fce3468959bf5bb6f735a
9+
Revision ID: 46a3a99adf457d30ea4aeb13ada45e895130d718
1010

1111
----------------- ----------------- ------------------------------------------
1212
Package Version Website
@@ -26,9 +26,9 @@ Revision ID: 6844be57ea3a098ef28fce3468959bf5bb6f735a
2626
bluemonday 0a75d7616912ab9 https://github.com/microcosm-cc/bluemonday
2727
beb9cc6f7283ec1
2828
917c61b135
29-
blocks 39dac49c58634f7 https://github.com/kataras/blocks
30-
9bc54fcd5c299da
31-
fe08dbd738
29+
blocks 2782010d7127295 https://github.com/kataras/blocks
30+
d72dc16632c7c0c
31+
01dfbf6ceb
3232
brotli c3da72aa01ed78f https://github.com/andybalholm/brotli
3333
164593b9624fd91
3434
d25082d2d2

context/context.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4216,14 +4216,14 @@ func (ctx *Context) UpsertCookie(cookie *http.Cookie, options ...CookieOption) b
42164216
// SetCookieKVExpiration is 365 days by-default
42174217
// you can change it or simple, use the SetCookie for more control.
42184218
//
4219-
// See CookieExpires` for more.
4219+
// See `CookieExpires` and `AddCookieOptions` for more.
42204220
var SetCookieKVExpiration = time.Duration(8760) * time.Hour
42214221

42224222
// SetCookieKV adds a cookie, requires the name(string) and the value(string).
42234223
//
4224-
// By default it expires at 2 hours and it's added to the root path,
4224+
// By default it expires after 365 days and it is added to the root URL path,
42254225
// use the `CookieExpires` and `CookiePath` to modify them.
4226-
// Alternatively: ctx.SetCookie(&http.Cookie{...})
4226+
// Alternatively: ctx.SetCookie(&http.Cookie{...}) or ctx.AddCookieOptions(...)
42274227
//
42284228
// If you want to set custom the path:
42294229
// ctx.SetCookieKV(name, value, iris.CookiePath("/custom/path/cookie/will/be/stored"))

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ require (
1919
github.com/iris-contrib/pongo2 v0.0.1
2020
github.com/iris-contrib/schema v0.0.2
2121
github.com/json-iterator/go v1.1.10
22-
github.com/kataras/blocks v0.0.1
22+
github.com/kataras/blocks v0.0.2
2323
github.com/kataras/golog v0.0.18
2424
github.com/kataras/neffos v0.0.16
2525
github.com/kataras/pio v0.0.8

0 commit comments

Comments
 (0)