Show More
@@ -232,8 +232,8 b' class HTTPApplication(object):' | |||
|
232 | 232 | self.global_config = global_config |
|
233 | 233 | self.config.include('vcsserver.lib.rc_cache') |
|
234 | 234 | |
|
235 | locale = settings.get('locale', '') or 'en_US.UTF-8' | |
|
236 | vcs = VCS(locale=locale, cache_config=settings) | |
|
235 | settings_locale = settings.get('locale', '') or 'en_US.UTF-8' | |
|
236 | vcs = VCS(locale=settings_locale, cache_config=settings) | |
|
237 | 237 | self._remotes = { |
|
238 | 238 | 'hg': vcs._hg_remote, |
|
239 | 239 | 'git': vcs._git_remote, |
@@ -444,14 +444,13 b' class HTTPApplication(object):' | |||
|
444 | 444 | |
|
445 | 445 | def _msgpack_renderer_factory(self, info): |
|
446 | 446 | def _render(value, system): |
|
447 | value = msgpack.packb(value) | |
|
448 | 447 | request = system.get('request') |
|
449 | 448 | if request is not None: |
|
450 | 449 | response = request.response |
|
451 | 450 | ct = response.content_type |
|
452 | 451 | if ct == response.default_content_type: |
|
453 | 452 | response.content_type = 'application/x-msgpack' |
|
454 | return value | |
|
453 | return msgpack.packb(value) | |
|
455 | 454 | return _render |
|
456 | 455 | |
|
457 | 456 | def set_env_from_config(self, environ, config): |
General Comments 0
You need to be logged in to leave comments.
Login now