##// END OF EJS Templates
stream: use wsgi.input_terminated because of webob changes of handling chunked encoding
marcink -
r332:02e39d96 stable
parent child Browse files
Show More
@@ -58,6 +58,11 b' except ImportError:'
58 58 log = logging.getLogger(__name__)
59 59
60 60
61 def _is_request_chunked(environ):
62 stream = environ.get('HTTP_TRANSFER_ENCODING', '') == 'chunked'
63 return stream
64
65
61 66 class VCS(object):
62 67 def __init__(self, locale=None, cache_config=None):
63 68 self.locale = locale
@@ -331,6 +336,10 b' class HTTPApplication(object):'
331 336 if ip:
332 337 environ['REMOTE_HOST'] = ip
333 338
339 if _is_request_chunked(environ):
340 # set the compatibility flag for webob
341 environ['wsgi.input_terminated'] = True
342
334 343 def hg_proxy(self):
335 344 @wsgiapp
336 345 def _hg_proxy(environ, start_response):
@@ -420,6 +429,7 b' class HTTPApplication(object):'
420 429
421 430 log.debug('http-app: starting app handler '
422 431 'with %s and process request', app)
432
423 433 return app(environ, start_response)
424 434
425 435 return _git_stream
General Comments 0
You need to be logged in to leave comments. Login now