Skip to content

Commit 7b04554

Browse files
committed
fix: r
Signed-off-by: ashing <[email protected]>
1 parent 4785d5a commit 7b04554

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/adc/types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ type RewriteConfig struct {
418418
}
419419

420420
type Headers struct {
421-
Set map[string]string `json:"set" yaml:"set"`
422-
Add map[string]string `json:"add" yaml:"add"`
423-
Remove []string `json:"remove" yaml:"remove"`
421+
Set map[string]string `json:"set,omitempty" yaml:"set,omitempty"`
422+
Add map[string]string `json:"add,omitempty" yaml:"add,omitempty"`
423+
Remove []string `json:"remove,omitempty" yaml:"remove,omitempty"`
424424
}
425425

426426
// ResponseRewriteConfig is the rule config for response-rewrite plugin.

0 commit comments

Comments
 (0)