1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Fixed response stream read length

This commit is contained in:
Uncled1023 2022-05-28 23:49:46 -07:00
parent 2fe2c9a643
commit 6edc67ab78

View File

@ -25,7 +25,7 @@ namespace Teknik.Utilities
int processedBytes;
do
{
processedBytes = await stream.ReadAsync(pooledArray.Array);
processedBytes = await stream.ReadAsync(pooledArray.Array, 0, pooledArray.Length);
if (processedBytes > 0)
{
await response.Body.WriteAsync(pooledArray.Array, 0, processedBytes);