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:
committed by
Traefiker
parent
53388a3570
commit
4497ddbb0e
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user