Skip to content

Commit

Permalink
Merge pull request #26 from jezer07/master
Browse files Browse the repository at this point in the history
Updated http dependency
  • Loading branch information
Vanethos authored Jun 3, 2021
2 parents bb13ed0 + fd0c5f3 commit a854696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/src/connectivity_util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class ConnectivityUtils {
try {

// ignore: close_sinks
final result = await http.get(_serverToPing);
final result = await http.get(Uri.parse(_serverToPing));
if (result.statusCode > 199 && result.statusCode < 400 && _callback(result.body)) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
rxdart: ^0.24.0
simple_connectivity: ^0.1.1
stream_disposable: ^0.1.0
http: ^0.12.0+2
http: ^0.13.0

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit a854696

Please sign in to comment.