use make(map[string]string)

This commit is contained in:
A.Unger
2020-12-03 13:23:14 +01:00
parent 9a253370e8
commit be46bacc5b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ func Frontend(cfg *config.Config) *cli.Command {
// have the indexes reversed and the tuple is in the format of [challenge:user-agent], then the same process is applied
// in reverse for each individual part
func loadUserAgent(c *cli.Context, cfg *config.Config) error {
cfg.Reva.Frontend.Middleware.Auth.CredentialsByUserAgent = make(map[string]string, 0)
cfg.Reva.Frontend.Middleware.Auth.CredentialsByUserAgent = make(map[string]string)
locks := c.StringSlice("user-agent-whitelist-lock-in")
for _, v := range locks {