Home | History | Annotate | Download | only in gzip
      1 #!/usr/bin/env python
      2 import zlib
      3 import os
      4 from StringIO import StringIO
      5 
      6 # Always returns a gzipped response body
      7 print "Status: 200 Ok"
      8 print ""
      9 
     10 print(zlib.compress('This is a compressed string'))
     11 
     12 
     13