1
0
mirror of https://github.com/containous/traefik.git synced 2025-10-16 23:33:20 +03:00

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