Signed-off-by: hmz007 <hmz007@gmail.com> Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
13 lines
203 B
Python
Executable File
13 lines
203 B
Python
Executable File
#!/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'))
|
|
|
|
|