Add AccessControlAllowOriginListRegex field to deepcopy
This commit is contained in:
parent
d38d11f02e
commit
3a8cb3f010
1 changed files with 5 additions and 0 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue