# HG changeset patch # User Alexis S. L. Carvalho # Date 1161536083 10800 # Node ID f5b9edf3390b872f8b4c2c8b112c3bc70e21b981 # Parent fffacca46f093010b75ef4a7a44fb4eecfc9f717 hgweb.unbundle: call req.httphdr only after the last possible call to bail diff -r fffacca46f09 -r f5b9edf3390b mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Fri Mar 16 00:22:53 2007 -0300 +++ b/mercurial/hgweb/hgweb_mod.py Sun Oct 22 13:54:43 2006 -0300 @@ -1076,8 +1076,6 @@ 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 @@ 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.