Merge pull request #2454 from sbwalker/dev

Resolve deserialization issue with System.Text.Json when accessing remote services
This commit is contained in:
Shaun Walker 2022-10-12 12:38:08 -04:00 committed by GitHub
commit 6dc5ef44b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,7 @@ namespace Oqtane.Controllers
var stream = await response.Content.ReadAsStreamAsync();
using (var streamReader = new StreamReader(stream))
{
return await JsonSerializer.DeserializeAsync<T>(stream);
return await JsonSerializer.DeserializeAsync<T>(stream, new JsonSerializerOptions(JsonSerializerDefaults.Web));
}
}
return default(T);