Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/wsgicgi.py @ 5580:f429e0e067a8
Fix style nit and add some comments to tests.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Sun, 02 Dec 2007 10:12:26 +0100 |
parents | e15f7db0f0ee |
children | 1ec2d227a521 |
line wrap: on
line diff
--- a/mercurial/hgweb/wsgicgi.py Sat Dec 01 19:19:08 2007 +0100 +++ b/mercurial/hgweb/wsgicgi.py Sun Dec 02 10:12:26 2007 +0100 @@ -16,9 +16,7 @@ util.set_binary(sys.stdout) environ = dict(os.environ.items()) - if 'PATH_INFO' not in environ: - environ['PATH_INFO'] = '' - + environ.setdefault('PATH_INFO', '') environ['wsgi.input'] = sys.stdin environ['wsgi.errors'] = sys.stderr environ['wsgi.version'] = (1, 0)