Mercurial > hg
comparison mercurial/hgweb/request.py @ 7742:fceb9fa01a00
hgweb: commit forgotten update to a3d7f99c23c0
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Mon, 09 Feb 2009 13:08:32 +0100 |
parents | a3d7f99c23c0 |
children | 46293a0c7e9f |
comparison
equal
deleted
inserted
replaced
7741:a3d7f99c23c0 | 7742:fceb9fa01a00 |
---|---|
74 for k, v in self.headers: | 74 for k, v in self.headers: |
75 if not isinstance(v, str): | 75 if not isinstance(v, str): |
76 raise TypeError('header value must be string: %r' % v) | 76 raise TypeError('header value must be string: %r' % v) |
77 | 77 |
78 if isinstance(status, ErrorResponse): | 78 if isinstance(status, ErrorResponse): |
79 self.header(status.headers) | |
79 status = statusmessage(status.code) | 80 status = statusmessage(status.code) |
80 self.header(status.headers) | |
81 elif status == 200: | 81 elif status == 200: |
82 status = '200 Script output follows' | 82 status = '200 Script output follows' |
83 elif isinstance(status, int): | 83 elif isinstance(status, int): |
84 status = statusmessage(status) | 84 status = statusmessage(status) |
85 | 85 |