diff options
author | Joe Gregorio <jcgregorio@google.com> | 2011-02-13 19:27:35 -0500 |
---|---|---|
committer | Joe Gregorio <jcgregorio@google.com> | 2011-02-13 19:27:35 -0500 |
commit | f952e7f6e1e17c8cb5b66c38e677911d0eb3530e (patch) | |
tree | 046716f0351a185eee000aa9067d45fbbcb9b786 /test | |
parent | 756d3b320a5d9ccf10ff2ff528909a149b73ad4f (diff) | |
download | httplib2-f952e7f6e1e17c8cb5b66c38e677911d0eb3530e.tar.gz |
Fixes issue 104.
Diffstat (limited to 'test')
-rwxr-xr-x | test/gzip/post.cgi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/gzip/post.cgi b/test/gzip/post.cgi new file mode 100755 index 0000000..97d06d1 --- /dev/null +++ b/test/gzip/post.cgi @@ -0,0 +1,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')) + + |