Fix typo.
This commit is contained in:
parent
3d8ee42287
commit
c6b9f67933
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -73,7 +73,7 @@ func NewApp() *gin.Engine {
|
|||
mustHaveSession := func(c *gin.Context) (string, error) {
|
||||
session := sessions.Default(c)
|
||||
val := session.Get("name")
|
||||
emptySession := errors.New("Emtpy session")
|
||||
emptySession := errors.New("Empty session")
|
||||
if val == nil {
|
||||
c.String(400, "No context")
|
||||
return "", emptySession
|
||||
|
|
Loading…
Reference in a new issue