File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Flow.Launcher.Core/ExternalPlugins Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 44using System . Collections . Generic ;
55using System . Net ;
66using System . Net . Http ;
7- using System . Text . Json ;
7+ using System . Net . Http . Json ;
88using System . Threading ;
99using System . Threading . Tasks ;
1010
@@ -36,9 +36,7 @@ public async Task<List<UserPlugin>> FetchAsync(CancellationToken token)
3636
3737 if ( response . StatusCode == HttpStatusCode . OK )
3838 {
39- await using var json = await response . Content . ReadAsStreamAsync ( token ) . ConfigureAwait ( false ) ;
40-
41- this . plugins = await JsonSerializer . DeserializeAsync < List < UserPlugin > > ( json , cancellationToken : token ) . ConfigureAwait ( false ) ;
39+ this . plugins = await response . Content . ReadFromJsonAsync < List < UserPlugin > > ( cancellationToken : token ) . ConfigureAwait ( false ) ;
4240 this . latestEtag = response . Headers . ETag . Tag ;
4341
4442 Log . Info ( nameof ( CommunityPluginSource ) , $ "Loaded { this . plugins . Count } plugins from { ManifestFileUrl } ") ;
You can’t perform that action at this time.
0 commit comments