HttpCompress Module and SharpZipLib

Yesterday I was trying to use the compression module blowery.web with the last version of SharpZipLib (0.83.1.0) and the error ‘Invalid uses of response filter’ took place if configured compresion module with gzip algorithm. After some debug i found that SharpZipLib lasted version writes the headers of the algorithm gzip in the constructor of the class GZipOutputStream and version 0.6.0.0 write headers when invoke GZipOutputStream.Write method. I modified a little the class GZipFilter of the compression module to adapt it to the behavior of the version 0.83.1.0, and to avoid fails. Here is the code.

About Rodolfo Finochietti

Uma's and Gino's father, and a programmer ;)

Posted on 03/02/2005, in .NET. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: