@@ -177,10 +177,10 @@ class ReposDao {
177177 String urls = Address .resolveStarRepos (userName, reposName);
178178 String urlw = Address .resolveWatcherRepos (userName, reposName);
179179 var resS = await httpManager.netFetch (
180- urls, null , null , new Options (contentType: ContentType . text),
180+ urls, null , null , new Options (contentType: " text" ),
181181 noTip: true );
182182 var resW = await httpManager.netFetch (
183- urlw, null , null , new Options (contentType: ContentType . text),
183+ urlw, null , null , new Options (contentType: " text" ),
184184 noTip: true );
185185 var data = {"star" : resS.result, "watch" : resW.result};
186186 return new DataResult (data, true );
@@ -243,7 +243,7 @@ class ReposDao {
243243 isHtml
244244 ? {"Accept" : 'application/vnd.github.html' }
245245 : {"Accept" : 'application/vnd.github.VERSION.raw' },
246- new Options (contentType: text ? ContentType . text : ContentType . json),
246+ new Options (contentType: text ? " text" : " json" ),
247247 );
248248 if (res != null && res.result) {
249249 if (text) {
@@ -283,7 +283,7 @@ class ReposDao {
283283 null ,
284284 null ,
285285 new Options (
286- method: ! star ? 'PUT' : 'DELETE' , contentType: ContentType . text));
286+ method: ! star ? 'PUT' : 'DELETE' , contentType: " text" ));
287287 return Future <DataResult >(() {
288288 return new DataResult (null , res.result);
289289 });
@@ -299,7 +299,7 @@ class ReposDao {
299299 null ,
300300 null ,
301301 new Options (
302- method: ! watch ? 'PUT' : 'DELETE' , contentType: ContentType . text));
302+ method: ! watch ? 'PUT' : 'DELETE' , contentType: " text" ));
303303 return new DataResult (null , res.result);
304304 }
305305
@@ -509,7 +509,7 @@ class ReposDao {
509509 static createForkDao (userName, reposName) async {
510510 String url = Address .createFork (userName, reposName);
511511 var res = await httpManager.netFetch (url, null , null ,
512- new Options (method: "POST" , contentType: ContentType . text));
512+ new Options (method: "POST" , contentType: " text" ));
513513 return new DataResult (null , res.result);
514514 }
515515
@@ -572,7 +572,7 @@ class ReposDao {
572572 url,
573573 null ,
574574 {"Accept" : 'application/vnd.github.VERSION.raw' },
575- new Options (contentType: ContentType . text));
575+ new Options (contentType: " text" ));
576576 //var res = await httpManager.netFetch(url, null, {"Accept": 'application/vnd.github.html'}, new Options(contentType: ContentType.text));
577577 if (res != null && res.result) {
578578 if (needDb) {
0 commit comments