update vendor directory

This commit is contained in:
henry.chen
2017-03-11 00:54:27 +08:00
parent 5d24af11e5
commit 5f047c2c27
94 changed files with 1668 additions and 1135 deletions

View File

@@ -230,7 +230,10 @@ func (s *RediStore) Get(r *http.Request, name string) (*sessions.Session, error)
//
// See gorilla/sessions FilesystemStore.New().
func (s *RediStore) New(r *http.Request, name string) (*sessions.Session, error) {
var err error
var (
err error
ok bool
)
session := sessions.NewSession(s, name)
// make a copy
options := *s.Options
@@ -239,7 +242,7 @@ func (s *RediStore) New(r *http.Request, name string) (*sessions.Session, error)
if c, errCookie := r.Cookie(name); errCookie == nil {
err = securecookie.DecodeMulti(name, c.Value, &session.ID, s.Codecs...)
if err == nil {
ok, err := s.load(session)
ok, err = s.load(session)
session.IsNew = !(err == nil && ok) // not new if no error and data available
}
}