From 5569a0b5410b5f392b56c3bfdb181ccd2eb29535 Mon Sep 17 00:00:00 2001 From: Alex Myasoedov Date: Fri, 4 Mar 2016 11:20:26 +0200 Subject: [PATCH] Session secret key --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 0cd8c2f..60185b5 100644 --- a/main.go +++ b/main.go @@ -13,14 +13,14 @@ import ( "github.com/gin-gonic/gin" ) -const SessionHeader = "slide-session" +const sessionHeader = "slide-session" func NewApp() *gin.Engine { r := gin.Default() store := sessions.NewCookieStore([]byte("secret")) - r.Use(sessions.Sessions(SessionHeader, store)) + r.Use(sessions.Sessions(sessionHeader, store)) r.LoadHTMLGlob("templates/*.tmpl") r.Static("/static", "./static")