Przeglądaj źródła

更新规则链管理接口

liuxiulin 2 lat temu
rodzic
commit
2a25274e20
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      services/knowoapi/services/rule_chain.go

+ 1 - 0
services/knowoapi/services/rule_chain.go

@@ -91,6 +91,7 @@ func (a ruleChainService) create(ruleChain *models.RuleChain) error {
 					Retry:     v.Data.Retry,
 					TimeOut:   v.Data.TimeOut,
 					RetryWait: v.Data.RetryWait,
+					Headers:   make(map[string]interface{}),
 				}
 				if len(v.Data.Headers) > 0 {
 					for _, header := range v.Data.Headers {