Skip to content

Commit

Permalink
Initialize user map (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalafut authored and kisielk committed May 26, 2018
1 parent c856192 commit e0b5aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_authentication_middleware_test.go
Expand Up @@ -40,7 +40,7 @@ func Example_authenticationMiddleware() {
r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
// Do something here
})
amw := authenticationMiddleware{}
amw := authenticationMiddleware{make(map[string]string)}
amw.Populate()
r.Use(amw.Middleware)
}

0 comments on commit e0b5aba

Please sign in to comment.