@@ -162,8 +162,8 @@ class ReposDao {
162162 static getRepositoryStatusDao (userName, reposName) async {
163163 String urls = Address .resolveStarRepos (userName, reposName);
164164 String urlw = Address .resolveWatcherRepos (userName, reposName);
165- var resS = await HttpManager .netFetch (urls, null , null , new Options (contentType: ContentType .TEXT ), noTip: true );
166- var resW = await HttpManager .netFetch (urlw, null , null , new Options (contentType: ContentType .TEXT ), noTip: true );
165+ var resS = await HttpManager .netFetch (urls, null , null , new Options (contentType: ContentType .text ), noTip: true );
166+ var resW = await HttpManager .netFetch (urlw, null , null , new Options (contentType: ContentType .text ), noTip: true );
167167 var data = {"star" : resS.result, "watch" : resW.result};
168168 return new DataResult (data, true );
169169 }
@@ -252,7 +252,7 @@ class ReposDao {
252252 */
253253 static Future <DataResult > doRepositoryStarDao (userName, reposName, star) async {
254254 String url = Address .resolveStarRepos (userName, reposName);
255- var res = await HttpManager .netFetch (url, null , null , new Options (method: ! star ? 'PUT' : 'DELETE' , contentType: ContentType .TEXT ));
255+ var res = await HttpManager .netFetch (url, null , null , new Options (method: ! star ? 'PUT' : 'DELETE' , contentType: ContentType .text ));
256256 return Future <DataResult >(() {
257257 return new DataResult (null , res.result);
258258 });
@@ -263,7 +263,7 @@ class ReposDao {
263263 */
264264 static doRepositoryWatchDao (userName, reposName, watch) async {
265265 String url = Address .resolveWatcherRepos (userName, reposName);
266- var res = await HttpManager .netFetch (url, null , null , new Options (method: ! watch ? 'PUT' : 'DELETE' , contentType: ContentType .TEXT ));
266+ var res = await HttpManager .netFetch (url, null , null , new Options (method: ! watch ? 'PUT' : 'DELETE' , contentType: ContentType .text ));
267267 return new DataResult (null , res.result);
268268 }
269269
@@ -464,7 +464,7 @@ class ReposDao {
464464 */
465465 static createForkDao (userName, reposName) async {
466466 String url = Address .createFork (userName, reposName);
467- var res = await HttpManager .netFetch (url, null , null , new Options (method: "POST" , contentType: ContentType .TEXT ));
467+ var res = await HttpManager .netFetch (url, null , null , new Options (method: "POST" , contentType: ContentType .text ));
468468 return new DataResult (null , res.result);
469469 }
470470
@@ -516,8 +516,8 @@ class ReposDao {
516516
517517 next () async {
518518 String url = Address .readmeFile (userName + '/' + reposName, branch);
519- var res = await HttpManager .netFetch (url, null , {"Accept" : 'application/vnd.github.VERSION.raw' }, new Options (contentType: ContentType .TEXT ));
520- //var res = await HttpManager.netFetch(url, null, {"Accept": 'application/vnd.github.html'}, new Options(contentType: ContentType.TEXT ));
519+ var res = await HttpManager .netFetch (url, null , {"Accept" : 'application/vnd.github.VERSION.raw' }, new Options (contentType: ContentType .text ));
520+ //var res = await HttpManager.netFetch(url, null, {"Accept": 'application/vnd.github.html'}, new Options(contentType: ContentType.text ));
521521 if (res != null && res.result) {
522522 if (needDb) {
523523 provider.insert (fullName, branch, res.data);
0 commit comments