changeset 13600:bcc59cb3714d stable

hgweb: pmezard thinks one default is enough
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Sat, 12 Mar 2011 16:00:54 +0100
parents e5d3c7083d91
children 888ec2650c2d
files mercurial/hgweb/request.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/request.py	Sat Mar 12 15:21:45 2011 +0100
+++ b/mercurial/hgweb/request.py	Sat Mar 12 16:00:54 2011 +0100
@@ -66,7 +66,7 @@
 
     def drain(self):
         '''need to read all data from request, httplib is half-duplex'''
-        length = int(self.env.get('CONTENT_LENGTH', 0) or 0)
+        length = int(self.env.get('CONTENT_LENGTH') or 0)
         for s in util.filechunkiter(self.inp, limit=length):
             pass