##// END OF EJS Templates
hgweb: use a capped reader for WSGI input stream...
Gregory Szorc -
r36870:290fc4c3 default
parent child Browse files
Show More
@@ -234,6 +234,14 class wsgirequest(object):
234 234 raise RuntimeError("Unknown and unsupported WSGI version %d.%d"
235 235 % version)
236 236 self.inp = wsgienv[r'wsgi.input']
237
238 if r'HTTP_CONTENT_LENGTH' in wsgienv:
239 self.inp = util.cappedreader(self.inp,
240 int(wsgienv[r'HTTP_CONTENT_LENGTH']))
241 elif r'CONTENT_LENGTH' in wsgienv:
242 self.inp = util.cappedreader(self.inp,
243 int(wsgienv[r'CONTENT_LENGTH']))
244
237 245 self.err = wsgienv[r'wsgi.errors']
238 246 self.threaded = wsgienv[r'wsgi.multithread']
239 247 self.multiprocess = wsgienv[r'wsgi.multiprocess']
General Comments 0
You need to be logged in to leave comments. Login now