prepare_v4 (#199)
All checks were successful
test / test (push) Successful in 1m56s

move to v4 micro

Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org>
Reviewed-on: #199
Co-authored-by: Evstigneev Denis <danteevstigneev@yandex.ru>
Co-committed-by: Evstigneev Denis <danteevstigneev@yandex.ru>
This commit is contained in:
2025-03-02 12:33:55 +03:00
parent 707476bbd4
commit 76bf0520c0
22 changed files with 225 additions and 537 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
}