Skip to content

Commit 2b1cbc1

Browse files
committed
format document
1 parent a6d24bd commit 2b1cbc1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/functions_client/test/custom_http_client.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)