Implements the includedContentTypes option for the compress middleware

This commit is contained in:
Robert Socha
2024-01-17 11:32:06 +01:00
committed by GitHub
parent 319517adef
commit 4e0a05406b
15 changed files with 469 additions and 24 deletions
@@ -132,6 +132,11 @@ func (in *Compress) DeepCopyInto(out *Compress) {
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.IncludedContentTypes != nil {
in, out := &in.IncludedContentTypes, &out.IncludedContentTypes
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}