refactor(k8s): default to nil headers struct.
This commit is contained in:
parent
53388a3570
commit
4497ddbb0e
3 changed files with 82 additions and 33 deletions
|
@ -214,9 +214,9 @@ func priority(value int) func(*types.Frontend) {
|
|||
}
|
||||
}
|
||||
|
||||
func headers() func(*types.Frontend) {
|
||||
func headers(h *types.Headers) func(*types.Frontend) {
|
||||
return func(f *types.Frontend) {
|
||||
f.Headers = &types.Headers{}
|
||||
f.Headers = h
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue