prepare v4
Some checks failed
lint / lint (pull_request) Failing after 1m43s
test / test (pull_request) Successful in 3m14s

This commit is contained in:
2025-02-27 22:45:32 +03:00
parent 707476bbd4
commit a9bbe17047
22 changed files with 188 additions and 566 deletions

View File

@@ -8,10 +8,10 @@ import (
"strings"
"sync"
codecpb "go.unistack.org/micro-proto/v3/codec"
"go.unistack.org/micro/v3/logger"
"go.unistack.org/micro/v3/metadata"
"go.unistack.org/micro/v3/meter"
codecpb "go.unistack.org/micro-proto/v4/codec"
"go.unistack.org/micro/v4/logger"
"go.unistack.org/micro/v4/metadata"
"go.unistack.org/micro/v4/meter"
)
const (
@@ -125,8 +125,11 @@ func gzipAccepted(md metadata.Metadata) bool {
if !ok {
return false
}
if strings.Contains(a, "gzip") {
return true
for i := range a {
if strings.Contains(a[i], "gzip") {
return true
}
}
return false
}