Show More
@@ -59,7 +59,7 b' class _wsgirequest(object):' | |||||
59 | def write(self, *things): |
|
59 | def write(self, *things): | |
60 | if self.server_write is None: |
|
60 | if self.server_write is None: | |
61 | if not self.headers: |
|
61 | if not self.headers: | |
62 | raise RuntimeError("request.write called before headers sent.") |
|
62 | self.header() | |
63 | self.server_write = self.start_response('200 Script output follows', |
|
63 | self.server_write = self.start_response('200 Script output follows', | |
64 | self.headers) |
|
64 | self.headers) | |
65 | self.start_response = None |
|
65 | self.start_response = None |
@@ -196,7 +196,7 b' def create_server(ui, repo):' | |||||
196 | def __init__(self, *args, **kwargs): |
|
196 | def __init__(self, *args, **kwargs): | |
197 | if self.address_family is None: |
|
197 | if self.address_family is None: | |
198 | raise hg.RepoError(_('IPv6 not available on this system')) |
|
198 | raise hg.RepoError(_('IPv6 not available on this system')) | |
199 | super(IPv6HTTPServer, self).__init__(*args, **kargs) |
|
199 | super(IPv6HTTPServer, self).__init__(*args, **kwargs) | |
200 |
|
200 | |||
201 | if use_ipv6: |
|
201 | if use_ipv6: | |
202 | return IPv6HTTPServer((address, port), _hgwebhandler) |
|
202 | return IPv6HTTPServer((address, port), _hgwebhandler) |
General Comments 0
You need to be logged in to leave comments.
Login now