mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 03:07:51 +08:00
[FIX] invalid ingress
This commit is contained in:
parent
71af2cfe2f
commit
59fff24ef3
@ -611,6 +611,9 @@ func (g *GatewayAction) RuleConfig(req *apimodel.RuleConfigReq) error {
|
||||
})
|
||||
setheaders := make(map[string]string)
|
||||
for _, item := range req.Body.SetHeaders {
|
||||
if strings.TrimSpace(item.Key) == "" || strings.TrimSpace(item.Value) == "" {
|
||||
continue
|
||||
}
|
||||
// filter same key
|
||||
setheaders["set-header-"+item.Key] = item.Value
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user