Skip to content

Commit e0b5aba

Browse files
kalafutkisielk
authored andcommitted
Initialize user map (#371)
1 parent c856192 commit e0b5aba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example_authentication_middleware_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func Example_authenticationMiddleware() {
4040
r.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
4141
// Do something here
4242
})
43-
amw := authenticationMiddleware{}
43+
amw := authenticationMiddleware{make(map[string]string)}
4444
amw.Populate()
4545
r.Use(amw.Middleware)
4646
}

0 commit comments

Comments
 (0)