mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-29 23:05:55 +08:00
fix grpc contentType
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user