fixed oauth bug

figured out it was how i was using sessions.
This commit is contained in:
dm
2016-08-25 11:29:20 -07:00
parent e63fee56dc
commit 6aebd3476c
2 changed files with 18 additions and 12 deletions
+2 -1
View File
@@ -12,6 +12,7 @@ import (
"s.mcquay.me/dm/chipmunk"
"github.com/gorilla/context"
"github.com/kelseyhightower/envconfig"
"github.com/spf13/cobra"
)
@@ -98,7 +99,7 @@ func main() {
log.Printf("serving at: http://%s:%d/", hostname, config.Port)
addr := fmt.Sprintf("%s:%d", config.Host, config.Port)
err = http.ListenAndServe(addr, sm)
err = http.ListenAndServe(addr, context.ClearHandler(sm))
if err != nil {
log.Printf("%+v", err)
os.Exit(1)