Skip to content

Commit c328984

Browse files
committed
Use BrowserClient from http package when creating a browser GitHub client
1 parent e843e1b commit c328984

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/browser.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
55
library github.browser;
66

7+
import 'package:http/browser_client.dart';
8+
79
import "src/common.dart";
810

911
export "src/browser/helper.dart";
@@ -12,5 +14,6 @@ export "src/common.dart";
1214
/// Creates a GitHub Client
1315
GitHub createGitHubClient(
1416
{Authentication auth, String endpoint: "https://api.github.com"}) {
15-
return new GitHub(auth: auth, endpoint: endpoint);
17+
return new GitHub(
18+
auth: auth, client: new BrowserClient(), endpoint: endpoint);
1619
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy