Skip to content

Commit

Permalink
update small alignment items
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd committed Feb 24, 2023
1 parent cfcd795 commit 7716402
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ public async Task HandleRecordRequestAsync(string recordingId, HttpRequest incom
entry.Response.Headers.Add(header.Key, values);
}

outgoingResponse.Headers.Remove("Transfer-Encoding");

if (entry.Response.Body?.Length > 0)
{
var bodyData = CompressionUtilities.CompressBody(entry.Response.Body, entry.Response.Headers);
Expand Down Expand Up @@ -516,17 +518,11 @@ public async Task WriteBodyBytes(byte[] bodyData, int playbackResponseTime, Http

byteCountSent+= chunk.Length;
await outgoingResponse.Body.WriteAsync(chunk).ConfigureAwait(false);
//await outgoingResponse.WriteAsync(Encoding.UTF8.GetString(chunk)).ConfigureAwait(false);

if (i != chunks.Length - 1)
{
Thread.Sleep(sleepLength);
}
else
{
//await outgoingResponse.WriteAsync(Encoding.UTF8.GetString(chunk)).ConfigureAwait(false);
await outgoingResponse.Body.FlushAsync().ConfigureAwait(false);
}
}

}
Expand Down

0 comments on commit 7716402

Please sign in to comment.