fix: resolved comments
This commit is contained in:
@@ -12,8 +12,8 @@ type provider struct{}
|
||||
|
||||
func (p provider) New(ctx context.Context, c map[string]string) (func(http.Handler) http.Handler, error) {
|
||||
config := &requestpreprocessor.Config{}
|
||||
if checkKeysStr, ok := c["CheckKeys"]; ok {
|
||||
config.CheckKeys = strings.Split(checkKeysStr, ",")
|
||||
if contextKeysStr, ok := c["ContextKeys"]; ok {
|
||||
config.ContextKeys = strings.Split(contextKeysStr, ",")
|
||||
}
|
||||
return requestpreprocessor.NewUUIDSetter(config)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user