We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36c5b8 commit ee63fc9Copy full SHA for ee63fc9
packages/storage_client/lib/src/fetch.dart
@@ -82,11 +82,15 @@ class Fetch {
82
83
_log.finest('Request: $method $url $headers');
84
final http.StreamedResponse streamedResponse;
85
- if (httpClient != null) {
86
- streamedResponse = await httpClient!.send(request);
87
- } else {
88
- streamedResponse = await request.send();
89
- }
+ // if (httpClient != null) {
+ // streamedResponse = await httpClient!.send(request);
+ // } else {
+ // streamedResponse = await request.send();
+ // }
90
+ streamedResponse = httpClient != null
91
+ ? await httpClient!.send(request)
92
+ : await request.send();
93
+
94
return _handleResponse(streamedResponse, options);
95
}
96
0 commit comments