Skip to content

Commit df4461c

Browse files
authored
fix: some URIs consistently failing (#80)
Replaced those URIs with new ones
1 parent 8aed98b commit df4461c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ The `InternetConnection` class uses the following `Uri`s by default:
207207
| `https://one.one.one.one` | Response time is less than `100ms`, CORS enabled, no-cache |
208208
| `https://icanhazip.com` | Response time is less than `100ms`, CORS enabled, no-cache |
209209
| `https://jsonplaceholder.typicode.com/todos/1` | Response time is less than `100ms`, CORS enabled, no-cache |
210-
| `https://reqres.in/api/users/1` | Response time is less than `100ms`, CORS enabled, no-cache |
210+
| `https://pokeapi.co/api/v2/ability/?limit=1` | Response time is less than `100ms`, CORS enabled, no-cache |
211211

212212
#### Some Tested URIs
213213

lib/src/internet_connection.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ class InternetConnection {
100100
InternetCheckOption(
101101
uri: Uri.parse('https://jsonplaceholder.typicode.com/todos/1'),
102102
),
103-
InternetCheckOption(uri: Uri.parse('https://reqres.in/api/users/1')),
103+
InternetCheckOption(
104+
uri: Uri.parse('https://pokeapi.co/api/v2/ability/?limit=1'),
105+
),
104106
];
105107

106108
/// The list of [Uri]s used for checking internet reachability.

0 commit comments

Comments
 (0)