Skip to content

Commit ffb4438

Browse files
authored
Fix maxRedirects documentation to mention ClientException rather than RedirectException (#907)
1 parent ad0e1cf commit ffb4438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/http/lib/src/base_request.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'dart:collection';
66

77
import 'package:meta/meta.dart';
88

9-
import '../http.dart' show get;
9+
import '../http.dart' show ClientException, get;
1010
import 'base_client.dart';
1111
import 'base_response.dart';
1212
import 'byte_stream.dart';
@@ -70,7 +70,7 @@ abstract class BaseRequest {
7070
/// The maximum number of redirects to follow when [followRedirects] is true.
7171
///
7272
/// If this number is exceeded the [BaseResponse] future will signal a
73-
/// `RedirectException`. Defaults to 5.
73+
/// [ClientException]. Defaults to 5.
7474
int get maxRedirects => _maxRedirects;
7575
int _maxRedirects = 5;
7676

0 commit comments

Comments
 (0)