mercurial/hgweb/webcommands.py
changeset 36977 a82fc3922446
parent 36887 4daa22071d5d
child 37019 c97b936d8bb5
equal deleted inserted replaced
36976:a4a95bd7158d 36977:a82fc3922446
  1193 
  1193 
  1194     if encoding:
  1194     if encoding:
  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 
  1202     archival.archive(web.repo, bodyfh, cnode, artype, prefix=name,
  1204     archival.archive(web.repo, bodyfh, cnode, artype, prefix=name,
  1203                      matchfn=match,
  1205                      matchfn=match,