Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hgraceb committed Aug 10, 2023
1 parent 183dc83 commit 6f14ed6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/lib/download.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:dio/dio.dart';
void main() async {
final dio = Dio();
dio.interceptors.add(LogInterceptor());
// Assure the value of total argument of onReceiveProgress is not -1.
dio.options.headers = {HttpHeaders.acceptEncodingHeader: '*'};
final url = 'https://pub.dev/static/hash-rhob5slb/img/pub-dev-logo.svg';
await download1(dio, url, './example/pub-dev-logo.svg');
Expand Down

0 comments on commit 6f14ed6

Please sign in to comment.