Show More
@@ -58,6 +58,11 b' except ImportError:' | |||||
58 | log = logging.getLogger(__name__) |
|
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 | class VCS(object): |
|
66 | class VCS(object): | |
62 | def __init__(self, locale=None, cache_config=None): |
|
67 | def __init__(self, locale=None, cache_config=None): | |
63 | self.locale = locale |
|
68 | self.locale = locale | |
@@ -331,6 +336,10 b' class HTTPApplication(object):' | |||||
331 | if ip: |
|
336 | if ip: | |
332 | environ['REMOTE_HOST'] = ip |
|
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 | def hg_proxy(self): |
|
343 | def hg_proxy(self): | |
335 | @wsgiapp |
|
344 | @wsgiapp | |
336 | def _hg_proxy(environ, start_response): |
|
345 | def _hg_proxy(environ, start_response): | |
@@ -420,6 +429,7 b' class HTTPApplication(object):' | |||||
420 |
|
429 | |||
421 | log.debug('http-app: starting app handler ' |
|
430 | log.debug('http-app: starting app handler ' | |
422 | 'with %s and process request', app) |
|
431 | 'with %s and process request', app) | |
|
432 | ||||
423 | return app(environ, start_response) |
|
433 | return app(environ, start_response) | |
424 |
|
434 | |||
425 | return _git_stream |
|
435 | return _git_stream |
General Comments 0
You need to be logged in to leave comments.
Login now