1
0
Fork 0

Remove Content-Type auto-detection

Co-authored-by: mpl <mathieu.lonjaret@gmail.com>
This commit is contained in:
Julien Salleyron 2020-01-21 18:06:03 +01:00 committed by Traefiker Bot
parent 24192a3797
commit c296a4a967
19 changed files with 600 additions and 278 deletions

View file

@ -41,6 +41,7 @@ type MiddlewareSpec struct {
Compress *dynamic.Compress `json:"compress,omitempty"`
PassTLSClientCert *dynamic.PassTLSClientCert `json:"passTLSClientCert,omitempty"`
Retry *dynamic.Retry `json:"retry,omitempty"`
ContentType *dynamic.ContentType `json:"contentType,omitempty"`
}
// +k8s:deepcopy-gen=true

View file

@ -606,6 +606,11 @@ func (in *MiddlewareSpec) DeepCopyInto(out *MiddlewareSpec) {
*out = new(dynamic.Retry)
**out = **in
}
if in.ContentType != nil {
in, out := &in.ContentType, &out.ContentType
*out = new(dynamic.ContentType)
**out = **in
}
return
}