flutter-hugo-cms icon indicating copy to clipboard operation
flutter-hugo-cms copied to clipboard

await http.get failed due to not supplying URI

Open gerardwebb opened this issue 3 years ago • 0 comments

fixed with Uri.parse

e.g

 final request = await http.get(
          Uri.parse("https://api.github.com/repos/$username/$repoName"),
          headers: {"Authorization": "token $accessToken"});

gerardwebb avatar Apr 04 '21 07:04 gerardwebb