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
{{ message }}
Repository navigation
Add support for Original filename field in gzip header #175
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(){returndeflater_.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);
Activity
afonsoft commentedon Apr 13, 2017
Change this file ICSharpCode.SharpZipLib.GZip.GZipOutputStream.cs
Create a two property
On "Support Routines" modify the method WriteHeader().
After the code baseOutputStream_.Write(gzipHeader, 0, gzipHeader.Length);
Inlude a code
[-]Set and Get a file name internal gzip[/-][+]Add support for Original filename field in gzip header[/+]piksel commentedon May 12, 2018
I've updated the question and the proposed solution to what I understand is the issue, please correct me if I misunderstood.
A filename can be added to the gzip header if the flag FNAME is set.
Reference: https://tools.ietf.org/html/rfc1952#section-2.3.1
This could be made into a PR.