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