hgweb.unbundle: call req.httphdr only after the last possible call to bail

This commit is contained in:
Alexis S. L. Carvalho 2006-10-22 13:54:43 -03:00
parent b1e6fe8df6
commit 8d63449217

View File

@ -1076,8 +1076,6 @@ class hgweb(object):
headers={'status': '401 Unauthorized'})
return
req.httphdr("application/mercurial-0.1")
their_heads = req.form['heads'][0].split(' ')
def check_heads():
@ -1089,6 +1087,8 @@ class hgweb(object):
bail(_('unsynced changes\n'))
return
req.httphdr("application/mercurial-0.1")
# do not lock repo until all changegroup data is
# streamed. save to temporary file.