Add AccessControlAllowOriginListRegex field to deepcopy

This commit is contained in:
Kevin Pollet 2020-11-05 11:24:03 +01:00 committed by GitHub
parent d38d11f02e
commit 3a8cb3f010
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -501,6 +501,11 @@ func (in *Headers) DeepCopyInto(out *Headers) {
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
if in.AccessControlAllowOriginListRegex != nil {
in, out := &in.AccessControlAllowOriginListRegex, &out.AccessControlAllowOriginListRegex
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.AccessControlExposeHeaders != nil { if in.AccessControlExposeHeaders != nil {
in, out := &in.AccessControlExposeHeaders, &out.AccessControlExposeHeaders in, out := &in.AccessControlExposeHeaders, &out.AccessControlExposeHeaders
*out = make([]string, len(*in)) *out = make([]string, len(*in))