mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
hgweb.unbundle: call req.httphdr only after the last possible call to bail
This commit is contained in:
parent
b1e6fe8df6
commit
8d63449217
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user