Mercurial > kallithea
diff rhodecode/lib/middleware/simplegit.py @ 1293:ae5b07e75ffd beta
fixed issue #181, and small fix in gitmiddleware
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 27 Apr 2011 01:27:39 +0200 |
parents | d6524f3025e8 |
children | b7563ad4e7ee |
line wrap: on
line diff
--- a/rhodecode/lib/middleware/simplegit.py Wed Apr 27 01:19:17 2011 +0200 +++ b/rhodecode/lib/middleware/simplegit.py Wed Apr 27 01:27:39 2011 +0200 @@ -98,7 +98,7 @@ #authenticate this git request using self.authenticate = AuthBasicAuthenticator('', authfunc) self.ipaddr = '0.0.0.0' - self.repository = None + self.repo_name = None self.username = None self.action = None @@ -147,8 +147,8 @@ #============================================================== if not REMOTE_USER(environ): - self.authenticate.realm = str( - self.config['rhodecode_realm']) + self.authenticate.realm = self.config['rhodecode_realm'].\ + encode('utf8', 'replace') result = self.authenticate(environ) if isinstance(result, str): AUTH_TYPE.update(environ, 'basic')