mercurial/hgweb/request.py
changeset 43117 8ff1ecfadcd1
parent 43106 d783f945a701
child 45003 839328c5a728
equal deleted inserted replaced
43116:defabf63e969 43117:8ff1ecfadcd1
   514                     % b', '.join(sorted(badheaders))
   514                     % b', '.join(sorted(badheaders))
   515                 )
   515                 )
   516 
   516 
   517             if self._bodygen is not None or self._bodywillwrite:
   517             if self._bodygen is not None or self._bodywillwrite:
   518                 raise error.ProgrammingError(
   518                 raise error.ProgrammingError(
   519                     b"must use setbodybytes('') with " b"304 responses"
   519                     b"must use setbodybytes('') with 304 responses"
   520                 )
   520                 )
   521 
   521 
   522         # Various HTTP clients (notably httplib) won't read the HTTP response
   522         # Various HTTP clients (notably httplib) won't read the HTTP response
   523         # until the HTTP request has been sent in full. If servers (us) send a
   523         # until the HTTP request has been sent in full. If servers (us) send a
   524         # response before the HTTP request has been fully sent, the connection
   524         # response before the HTTP request has been fully sent, the connection