##// END OF EJS Templates
hgweb: convert an assert to a ProgrammingError...
Gregory Szorc -
r36995:a82fc392 default
parent child Browse files
Show More
@@ -1195,7 +1195,9 b' def archive(web):'
1195 web.res.headers['Content-Encoding'] = encoding
1195 web.res.headers['Content-Encoding'] = encoding
1196
1196
1197 web.res.setbodywillwrite()
1197 web.res.setbodywillwrite()
1198 assert list(web.res.sendresponse()) == []
1198 if list(web.res.sendresponse()):
1199 raise error.ProgrammingError('sendresponse() should not emit data '
1200 'if writing later')
1199
1201
1200 bodyfh = web.res.getbodyfile()
1202 bodyfh = web.res.getbodyfile()
1201
1203
General Comments 0
You need to be logged in to leave comments. Login now