You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change this file ICSharpCode.SharpZipLib.GZip.GZipOutputStream.cs
Create a two property
/// <summary>/// Get the current compression level./// </summary>/// <returns>The current compression level.</returns>publicintGetLevel(){return deflater_.GetLevel();}/// <summary>/// Set a file name internal gzip/// </summary>/// <param name="filename">name of file zipped</param>publicvoidSetFileName(stringfilename){_fileName=filename;}
On "Support Routines" modify the method WriteHeader().
After the code baseOutputStream_.Write(gzipHeader, 0, gzipHeader.Length);
Steps to reproduce
foo.txt
using gzip tofoo.txt.gz
foo.txt.gz
tobar.txt.gz
bar.txt.gz
Expected behavior
Output filename should be
foo.txt
Actual behavior
Output filename is
bar.txt
Version of SharpZipLib
Obtained from (place an x between the brackets for all that apply)
The text was updated successfully, but these errors were encountered: