Skip to content

Commit df0a004

Browse files
authored
docs: update not working endpoint (#114)
1 parent fd95241 commit df0a004

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ approved!)_:
306306
| https://randomuser.me/api/?inc=gender | CORS enabled, no-cache |
307307
| https://dog.ceo/api/breed/husky/list | CORS enabled, no-cache |
308308
| https://lenta.ru | Russia supported, CORS enabled, no-cache |
309-
| https://www.gazeta.ru | Russia supported, CORS enabled, no-cache |
310309

311310
_Feel free to use your own trusted endpoints! We don't judge your API choices._
312311
🎯

example/lib/pages/custom_uris.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ class _CustomURIsState extends State<CustomURIs> {
2323
super.initState();
2424
_subscription = InternetConnection.createInstance(
2525
customCheckOptions: [
26+
InternetCheckOption(
27+
uri: Uri.parse('https://cloudflare.com/cdn-cgi/trace'),
28+
),
2629
InternetCheckOption(uri: Uri.parse('https://ipapi.co/ip')),
2730
InternetCheckOption(
2831
uri: Uri.parse('https://api.adviceslip.com/advice'),
@@ -40,7 +43,6 @@ class _CustomURIsState extends State<CustomURIs> {
4043
uri: Uri.parse('https://dog.ceo/api/breed/husky/list'),
4144
),
4245
InternetCheckOption(uri: Uri.parse('https://lenta.ru')),
43-
InternetCheckOption(uri: Uri.parse('https://www.gazeta.ru')),
4446
],
4547
useDefaultOptions: false,
4648
).onStatusChange.listen((status) {

0 commit comments

Comments
 (0)