HttpCompress Module and SharpZipLib

Yesterday I was trying to use the compression module blowery.web with the last version of SharpZipLib ( 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 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, and to avoid fails. Here is the code.