# HG changeset patch # User Dirkjan Ochtman # Date 1299942054 -3600 # Node ID bcc59cb3714d73138813c55e652fab8b9431ce86 # Parent e5d3c7083d916006005024132c27cdbc24093059 hgweb: pmezard thinks one default is enough diff -r e5d3c7083d91 -r bcc59cb3714d mercurial/hgweb/request.py --- 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