Mercurial > kallithea
diff rhodecode/lib/utils.py @ 2668:f0851f37d6be beta
Implementes #509 require SSL flag now works for both git and mercurial.
- check is done at earlies possible stage
- if detected protocol is not https and flag require is there RhodeCode will
return HTTP Error 406: Not Acceptable, before even checking credentials
- removed push_ssl flag from mercurial UI objects since that would duplicate logic
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 26 Jul 2012 23:03:26 +0200 |
parents | d6fa7805e687 |
children | 2b6939a77052 |
line wrap: on
line diff
--- a/rhodecode/lib/utils.py Thu Jul 26 22:22:31 2012 +0200 +++ b/rhodecode/lib/utils.py Thu Jul 26 23:03:26 2012 +0200 @@ -312,7 +312,7 @@ hg_ui = ret for ui_ in hg_ui: - if ui_.ui_active: + if ui_.ui_active and ui_.ui_key != 'push_ssl': log.debug('settings ui from db[%s]%s:%s', ui_.ui_section, ui_.ui_key, ui_.ui_value) baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value)