Show More
@@ -334,6 +334,7 b' class HTTPApplication(object):' | |||
|
334 | 334 | else: |
|
335 | 335 | @wsgiapp |
|
336 | 336 | def _hg_stream(environ, start_response): |
|
337 | log.debug('http-app: handling hg stream') | |
|
337 | 338 | repo_path = environ['HTTP_X_RC_REPO_PATH'] |
|
338 | 339 | repo_name = environ['HTTP_X_RC_REPO_NAME'] |
|
339 | 340 | packed_config = base64.b64decode( |
@@ -345,6 +346,8 b' class HTTPApplication(object):' | |||
|
345 | 346 | # Consitent path information for hgweb |
|
346 | 347 | environ['PATH_INFO'] = environ['HTTP_X_RC_PATH_INFO'] |
|
347 | 348 | environ['REPO_NAME'] = repo_name |
|
349 | log.debug('http-app: starting app handler ' | |
|
350 | 'with %s and process request', app) | |
|
348 | 351 | return app(environ, ResponseFilter(start_response)) |
|
349 | 352 | return _hg_stream |
|
350 | 353 | |
@@ -358,6 +361,7 b' class HTTPApplication(object):' | |||
|
358 | 361 | else: |
|
359 | 362 | @wsgiapp |
|
360 | 363 | def _git_stream(environ, start_response): |
|
364 | log.debug('http-app: handling git stream') | |
|
361 | 365 | repo_path = environ['HTTP_X_RC_REPO_PATH'] |
|
362 | 366 | repo_name = environ['HTTP_X_RC_REPO_NAME'] |
|
363 | 367 | packed_config = base64.b64decode( |
@@ -388,6 +392,9 b' class HTTPApplication(object):' | |||
|
388 | 392 | else: |
|
389 | 393 | app = scm_app.create_git_wsgi_app( |
|
390 | 394 | repo_path, repo_name, config) |
|
395 | ||
|
396 | log.debug('http-app: starting app handler ' | |
|
397 | 'with %s and process request', app) | |
|
391 | 398 | return app(environ, start_response) |
|
392 | 399 | |
|
393 | 400 | return _git_stream |
General Comments 0
You need to be logged in to leave comments.
Login now