mercurial/hgweb/request.py
changeset 26200 461e7b700fdf
parent 26132 9df8c729e2e7
child 26846 7c1b4840c2cd
equal deleted inserted replaced
26199:5411059d93f8 26200:461e7b700fdf
    98                     # it MUST NOT include any headers other than these and no
    98                     # it MUST NOT include any headers other than these and no
    99                     # body
    99                     # body
   100                     self.headers = [(k, v) for (k, v) in self.headers if
   100                     self.headers = [(k, v) for (k, v) in self.headers if
   101                                     k in ('Date', 'ETag', 'Expires',
   101                                     k in ('Date', 'ETag', 'Expires',
   102                                           'Cache-Control', 'Vary')]
   102                                           'Cache-Control', 'Vary')]
   103                 status = statusmessage(status.code, status.message)
   103                 status = statusmessage(status.code, str(status))
   104             elif status == 200:
   104             elif status == 200:
   105                 status = '200 Script output follows'
   105                 status = '200 Script output follows'
   106             elif isinstance(status, int):
   106             elif isinstance(status, int):
   107                 status = statusmessage(status)
   107                 status = statusmessage(status)
   108 
   108