Skip to content

Commit

Permalink
[FIX] #452 Compressed item added to file cache -> error 500.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeago authored and geoperez committed Feb 16, 2020
1 parent 071eabf commit eb07967
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EmbedIO/Files/FileModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ await source.CopyToAsync(compressor, WebServer.StreamCopyBufferSize, context.Can
}

content = memoryStream.ToArray();
responseContentLength = content.Length;
}

cacheItem.SetContent(compressionMethod, content);
Expand Down

0 comments on commit eb07967

Please sign in to comment.