We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f032080 commit afc285aCopy full SHA for afc285a
src/Npgsql.Json.NET/Internal/JsonNetJsonConverter.cs
@@ -62,7 +62,7 @@ static class JsonNetJsonConverter
62
using var stream = reader.GetStream();
63
var mem = new MemoryStream();
64
if (async)
65
- await stream.CopyToAsync(mem, Math.Min((int)mem.Length, 81920), cancellationToken).ConfigureAwait(false);
+ await stream.CopyToAsync(mem, Math.Min((int)stream.Length, 81920), cancellationToken).ConfigureAwait(false);
66
else
67
stream.CopyTo(mem);
68
mem.Position = 0;
0 commit comments