Show More
@@ -441,6 +441,8 b' class hgweb(object):' | |||
|
441 | 441 | res.headers['Content-Type'] = ctype |
|
442 | 442 | return rctx.sendtemplate('error', error=pycompat.bytestr(e)) |
|
443 | 443 | except ErrorResponse as e: |
|
444 | for k, v in e.headers: | |
|
445 | res.headers[k] = v | |
|
444 | 446 | res.status = statusmessage(e.code, pycompat.bytestr(e)) |
|
445 | 447 | res.headers['Content-Type'] = ctype |
|
446 | 448 | return rctx.sendtemplate('error', error=pycompat.bytestr(e)) |
General Comments 0
You need to be logged in to leave comments.
Login now