comparison mercurial/hgweb/request.py @ 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 e2c413bde8a5
comparison
equal deleted inserted replaced
13598:e5d3c7083d91 13600:bcc59cb3714d
64 def read(self, count=-1): 64 def read(self, count=-1):
65 return self.inp.read(count) 65 return self.inp.read(count)
66 66
67 def drain(self): 67 def drain(self):
68 '''need to read all data from request, httplib is half-duplex''' 68 '''need to read all data from request, httplib is half-duplex'''
69 length = int(self.env.get('CONTENT_LENGTH', 0) or 0) 69 length = int(self.env.get('CONTENT_LENGTH') or 0)
70 for s in util.filechunkiter(self.inp, limit=length): 70 for s in util.filechunkiter(self.inp, limit=length):
71 pass 71 pass
72 72
73 def respond(self, status, type=None, filename=None, length=0): 73 def respond(self, status, type=None, filename=None, length=0):
74 if self._start_response is not None: 74 if self._start_response is not None: