Skip to content

Commit

Permalink
new gzip cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Sep 8, 2015
1 parent 80b7668 commit b22b838
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/netius/servers/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def open(self, *args, **kwargs):
def close(self, *args, **kwargs):
netius.Connection.close(self, *args, **kwargs)
if self.parser: self.parser.destroy()
if self.gzip: self.gzip.flush(zlib.Z_FINISH)

def send(self, data, delay = False, callback = None):
if self.current == PLAIN_ENCODING:
Expand Down

0 comments on commit b22b838

Please sign in to comment.