Skip to content

Commit

Permalink
Ensure old response content is closed out for hot reload
Browse files Browse the repository at this point in the history
  • Loading branch information
TanayParikh committed Aug 25, 2022
1 parent 8dd1316 commit ebdfdf4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public static bool TryReplaceResponseContent(string contentRootRelativePath, str
if (_updatedContent.TryGetValue((assemblyName, relativePath), out var values))
{
responseStatusCode = 200;
responseContent.Close();
responseContent = new MemoryStream(values.Content);
if (!string.IsNullOrEmpty(values.ContentType))
{
Expand Down

0 comments on commit ebdfdf4

Please sign in to comment.