##// END OF EJS Templates
py3: byteify hgweberror.py...
Gregory Szorc -
r40191:0199fb5d default
parent child Browse files
Show More
@@ -10,7 +10,7 b' def raiseerror(web):'
10 '''Dummy web command that raises an uncaught Exception.'''
10 '''Dummy web command that raises an uncaught Exception.'''
11
11
12 # Simulate an error after partial response.
12 # Simulate an error after partial response.
13 if 'partialresponse' in web.req.qsparams:
13 if b'partialresponse' in web.req.qsparams:
14 web.res.status = b'200 Script output follows'
14 web.res.status = b'200 Script output follows'
15 web.res.headers[b'Content-Type'] = b'text/plain'
15 web.res.headers[b'Content-Type'] = b'text/plain'
16 web.res.setbodywillwrite()
16 web.res.setbodywillwrite()
@@ -21,4 +21,4 b' def raiseerror(web):'
21
21
22 def extsetup(ui):
22 def extsetup(ui):
23 setattr(webcommands, 'raiseerror', raiseerror)
23 setattr(webcommands, 'raiseerror', raiseerror)
24 webcommands.__all__.append('raiseerror')
24 webcommands.__all__.append(b'raiseerror')
General Comments 0
You need to be logged in to leave comments. Login now