Leave stream open for gzip streams
This commit is contained in:
parent
83a9ae7395
commit
b75e0e3994
@ -44,7 +44,7 @@ namespace Toolbox.Library
|
||||
stream.Position = startPosition;
|
||||
|
||||
var mem = new System.IO.MemoryStream();
|
||||
using (GZipStream source = new GZipStream(stream, CompressionMode.Decompress, false))
|
||||
using (GZipStream source = new GZipStream(stream, CompressionMode.Decompress, true))
|
||||
{
|
||||
source.CopyTo(mem);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user