summaryrefslogtreecommitdiff
path: root/standalone.py
diff options
context:
space:
mode:
authormartin.von.loewis <devnull@localhost>2011-04-07 13:19:49 +0000
committermartin.von.loewis <devnull@localhost>2011-04-07 13:19:49 +0000
commit22efe0f8e38e473668e637a1885ac0d46d3f1a92 (patch)
tree7aeae567b2284599b780170c014502b98f5476e8 /standalone.py
parentfbc01196584140c60ba7fb03ffe65275c89d90cd (diff)
downloaddecorator-22efe0f8e38e473668e637a1885ac0d46d3f1a92.tar.gz
Support gzip encoding of simple pages.
Diffstat (limited to 'standalone.py')
-rwxr-xr-xstandalone.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/standalone.py b/standalone.py
index 61b838b..209db60 100755
--- a/standalone.py
+++ b/standalone.py
@@ -77,6 +77,9 @@ class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
co = filter(None, self.headers.getheaders('cookie'))
if co:
env['HTTP_COOKIE'] = ', '.join(co)
+ ac = self.headers.getheader('accept-encoding')
+ if ac:
+ env['HTTP_ACCEPT_ENCODING'] = ac
webui.WebUI(self, env).run()
do_GET = do_POST = run