##// END OF EJS Templates
hgweb.unbundle: call req.httphdr only after the last possible call to bail
Alexis S. L. Carvalho -
r4227:f5b9edf3 default
parent child Browse files
Show More
@@ -1076,8 +1076,6 b' class hgweb(object):'
1076 headers={'status': '401 Unauthorized'})
1076 headers={'status': '401 Unauthorized'})
1077 return
1077 return
1078
1078
1079 req.httphdr("application/mercurial-0.1")
1080
1081 their_heads = req.form['heads'][0].split(' ')
1079 their_heads = req.form['heads'][0].split(' ')
1082
1080
1083 def check_heads():
1081 def check_heads():
@@ -1089,6 +1087,8 b' class hgweb(object):'
1089 bail(_('unsynced changes\n'))
1087 bail(_('unsynced changes\n'))
1090 return
1088 return
1091
1089
1090 req.httphdr("application/mercurial-0.1")
1091
1092 # do not lock repo until all changegroup data is
1092 # do not lock repo until all changegroup data is
1093 # streamed. save to temporary file.
1093 # streamed. save to temporary file.
1094
1094
General Comments 0
You need to be logged in to leave comments. Login now