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:
parent
2fe2c9a643
commit
6edc67ab78
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user