File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
packages/functions_client/test Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class CustomHttpClient extends BaseClient {
6363 } else {
6464 final Stream <List <int >> stream;
6565 final Map <String , String > headers;
66-
66+
6767 if (request is MultipartRequest ) {
6868 stream = Stream .value (
6969 utf8.encode (jsonEncode ([
@@ -77,14 +77,16 @@ class CustomHttpClient extends BaseClient {
7777 headers = {"Content-Type" : "application/json" };
7878 } else {
7979 // Check if the request contains binary data (Uint8List)
80- final isOctetStream = request.headers['Content-Type' ] == 'application/octet-stream' ;
80+ final isOctetStream =
81+ request.headers['Content-Type' ] == 'application/octet-stream' ;
8182 if (isOctetStream) {
8283 // Return the original binary data
8384 final bodyBytes = (request as Request ).bodyBytes;
8485 stream = Stream .value (bodyBytes);
8586 headers = {"Content-Type" : "application/octet-stream" };
8687 } else {
87- stream = Stream .value (utf8.encode (jsonEncode ({"key" : "Hello World" })));
88+ stream =
89+ Stream .value (utf8.encode (jsonEncode ({"key" : "Hello World" })));
8890 headers = {"Content-Type" : "application/json" };
8991 }
9092 }
You can’t perform that action at this time.
0 commit comments