refactor(k8s): default to nil headers struct.

This commit is contained in:
Fernandez Ludovic 2018-01-02 18:03:50 +01:00 committed by Traefiker
parent 53388a3570
commit 4497ddbb0e
3 changed files with 82 additions and 33 deletions

View file

@ -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
}
}