Skip to content

Commit

Permalink
chore: yet another stream response fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpop-zengenti committed Apr 30, 2024
1 parent 3c0a5f6 commit c0fb531
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ public EndpointResponse(
}

var stream = new MemoryStream();

// TODO: find a way dispose the writer without generating "Cannot access a closed Stream" ObjectDisposedException
var writer = new StreamWriter(stream);
var writer = new StreamWriter(stream, leaveOpen: true);
writer.Write(StringContent);
writer.Flush();
if (resetPosition)
Expand Down

0 comments on commit c0fb531

Please sign in to comment.