diff options
author | martin.von.loewis <devnull@localhost> | 2011-04-07 13:19:49 +0000 |
---|---|---|
committer | martin.von.loewis <devnull@localhost> | 2011-04-07 13:19:49 +0000 |
commit | 22efe0f8e38e473668e637a1885ac0d46d3f1a92 (patch) | |
tree | 7aeae567b2284599b780170c014502b98f5476e8 /standalone.py | |
parent | fbc01196584140c60ba7fb03ffe65275c89d90cd (diff) | |
download | decorator-22efe0f8e38e473668e637a1885ac0d46d3f1a92.tar.gz |
Support gzip encoding of simple pages.
Diffstat (limited to 'standalone.py')
-rwxr-xr-x | standalone.py | 3 |
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 |