Compare commits

..

No commits in common. "aecafc29863a0c7cb32f6d995e625a9a26be3284" and "9ce19b94b4f4983fd95791abfb4a0e2f592b1256" have entirely different histories.

2 changed files with 1 additions and 8 deletions

2
pkg.go
View File

@ -64,7 +64,7 @@ import (
"strings" "strings"
) )
const VERSION = "v0.2.13" const VERSION = "v0.2.12"
type HttpHandler func(http.ResponseWriter, *http.Request) type HttpHandler func(http.ResponseWriter, *http.Request)

View File

@ -75,13 +75,6 @@ func (service *Service) sessionNew(w http.ResponseWriter, r *http.Request, foo *
}, },
) )
cookie := http.Cookie{}
cookie.Name = "X-Session-ID"
cookie.Value = sess.UUID
cookie.MaxAge = 86400 * 365
cookie.Path = "/"
http.SetCookie(w, &cookie)
w.Write(respJSON) w.Write(respJSON)
} // }}} } // }}}
func (service *Service) sessionAuthenticate(w http.ResponseWriter, r *http.Request, sess *session.T) { // {{{ func (service *Service) sessionAuthenticate(w http.ResponseWriter, r *http.Request, sess *session.T) { // {{{