Skip to content

Commit eb07967

Browse files
rdeagogeoperez
authored andcommitted
[FIX] #452 Compressed item added to file cache -> error 500.
1 parent 071eabf commit eb07967

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/EmbedIO/Files/FileModule.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ await source.CopyToAsync(compressor, WebServer.StreamCopyBufferSize, context.Can
540540
}
541541

542542
content = memoryStream.ToArray();
543+
responseContentLength = content.Length;
543544
}
544545

545546
cacheItem.SetContent(compressionMethod, content);

0 commit comments

Comments
 (0)