allow empty values for url so we can have /?tip
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 18 Oct 2005 21:11:24 -0700
changeset 1407 db571bcaa35d
parent 1406 34cb3957d875
child 1408 5010207c3527
allow empty values for url so we can have /?tip
mercurial/hgweb.py
--- a/mercurial/hgweb.py	Tue Oct 18 20:06:34 2005 -0700
+++ b/mercurial/hgweb.py	Tue Oct 18 21:11:24 2005 -0700
@@ -67,7 +67,7 @@
         self.inp = inp or sys.stdin
         self.out = out or sys.stdout
         self.env = env or os.environ
-        self.form = cgi.parse(self.inp, self.env)
+        self.form = cgi.parse(self.inp, self.env, keep_blank_values=1)
 
     def write(self, *things):
         for thing in things: