fix grpc contentType

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-19 11:22:26 +08:00
parent af723e161c
commit 952d168022
2 changed files with 4 additions and 3 deletions

View File

@@ -13,7 +13,10 @@ import 'package:protobuf/protobuf.dart' show GeneratedMessage;
abstract final class GrpcReq {
static const _isolateSize = 256 * 1024;
static final options = Options(responseType: ResponseType.bytes);
static final options = Options(
contentType: 'application/grpc',
responseType: ResponseType.bytes,
);
static Uint8List compressProtobuf(Uint8List proto) {
proto = const GZipEncoder().encodeBytes(proto);