Add 'body_FormData' generator to template func maps

This commit is contained in:
2025-06-01 23:22:55 +04:00
parent a8cd253c63
commit 9152eefdc5
4 changed files with 476 additions and 359 deletions

View File

@ -204,7 +204,13 @@ func (config *Config) Validate() []error {
}
}
funcMap := utils.NewFuncMap(rand.New(rand.NewSource(time.Now().UnixNano())))
funcMap := *utils.NewFuncMapGenerator(
rand.New(
rand.NewSource(
time.Now().UnixNano(),
),
),
).GetFuncMap()
for _, header := range config.Headers {
t, err := template.New("default").Funcs(funcMap).Parse(header.Key)