Mercurial > hg
changeset 6155:ea161d648117
hgweb: no i18n in protocol responses
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 21 Feb 2008 15:56:35 +0100 |
parents | ef1c5a3b653d |
children | ba0790061ba7 |
files | mercurial/hgweb/protocol.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/protocol.py Thu Feb 21 17:02:28 2008 +0100 +++ b/mercurial/hgweb/protocol.py Thu Feb 21 15:56:35 2008 +0100 @@ -123,7 +123,7 @@ ssl_req = web.configbool('web', 'push_ssl', True) if ssl_req: if req.env.get('wsgi.url_scheme') != 'https': - bail(_('ssl required\n')) + bail('ssl required\n') return proto = 'https' else: @@ -131,7 +131,7 @@ # do not allow push unless explicitly allowed if not web.check_perm(req, 'push', False): - bail(_('push not authorized\n'), + bail('push not authorized\n', headers={'status': '401 Unauthorized'}) return @@ -143,7 +143,7 @@ # fail early if possible if not check_heads(): - bail(_('unsynced changes\n')) + bail('unsynced changes\n') return req.respond(HTTP_OK, HGTYPE) @@ -163,7 +163,7 @@ try: if not check_heads(): req.write('0\n') - req.write(_('unsynced changes\n')) + req.write('unsynced changes\n') return fp.seek(0)