aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/gorilla/securecookie
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/gorilla/securecookie')
-rw-r--r--vendor/github.com/gorilla/securecookie/AUTHORS19
-rw-r--r--vendor/github.com/gorilla/securecookie/LICENSE2
-rw-r--r--vendor/github.com/gorilla/securecookie/securecookie.go2
3 files changed, 21 insertions, 2 deletions
diff --git a/vendor/github.com/gorilla/securecookie/AUTHORS b/vendor/github.com/gorilla/securecookie/AUTHORS
new file mode 100644
index 0000000..a4d447d
--- /dev/null
+++ b/vendor/github.com/gorilla/securecookie/AUTHORS
@@ -0,0 +1,19 @@
+# This is the official list of gorilla/securecookie authors for copyright purposes.
+# Please keep the list sorted.
+
+0x434D53 <christoph.seufert@gmail.com>
+Abdülhamit Yilmaz <mr.yilmaz@gmx.de>
+Annonomus-Penguin <Annonomus-Penguin@users.noreply.github.com>
+Craig Peterson <cpeterson@stackoverflow.com>
+Cyril David <cyx@cyx.is>
+Dmitry Chestnykh <dmitry@codingrobots.com>
+Dominik Honnef <dominikh@fork-bomb.org>
+Google LLC (https://opensource.google.com/)
+John Downey <john@jtdowney.com>
+Kamil Kisiel <kamil@kamilkisiel.net>
+Keunwoo Lee <keunwoo@flux.io>
+Mahmud Ridwan <m@hjr265.me>
+Matt Silverlock <matt@eatsleeprepeat.net>
+rodrigo moraes <rodrigo.moraes@gmail.com>
+s7v7nislands <s7v7nislands@gmail.com>
+Wesley Bitter <github@wessie.info>
diff --git a/vendor/github.com/gorilla/securecookie/LICENSE b/vendor/github.com/gorilla/securecookie/LICENSE
index 0e5fb87..6903df6 100644
--- a/vendor/github.com/gorilla/securecookie/LICENSE
+++ b/vendor/github.com/gorilla/securecookie/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2012 Rodrigo Moraes. All rights reserved.
+Copyright (c) 2012-2018 The Gorilla Authors. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
diff --git a/vendor/github.com/gorilla/securecookie/securecookie.go b/vendor/github.com/gorilla/securecookie/securecookie.go
index cd4e097..61af390 100644
--- a/vendor/github.com/gorilla/securecookie/securecookie.go
+++ b/vendor/github.com/gorilla/securecookie/securecookie.go
@@ -141,7 +141,7 @@ func New(hashKey, blockKey []byte) *SecureCookie {
maxLength: 4096,
sz: GobEncoder{},
}
- if hashKey == nil {
+ if len(hashKey) == 0 {
s.err = errHashKeyNotSet
}
if blockKey != nil {