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

View File

@@ -326,7 +326,7 @@ func loadMiddlewares(ctx context.Context, l log.Logger, cfg *config.Config) alic
// 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.Middleware.Auth.CredentialsByUserAgent = make(map[string]string, 0)
cfg.Reva.Middleware.Auth.CredentialsByUserAgent = make(map[string]string)
locks := c.StringSlice("proxy-user-agent-lock-in")
for _, v := range locks {