Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/server.py @ 12740:b86c6954ec4c
serve: fix https mode and add test
The https mode failed in super because BaseRequestHandler is an old-style
class.
This introduces the first test of https client/server functionality - and
"hghave ssl". The test is currently only run on Python 2.6.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 17 Oct 2010 04:13:35 +0200 |
parents | 49463314c24f |
children | 191d0fd5c2fd |
line wrap: on
line diff
--- a/mercurial/hgweb/server.py Sat Oct 16 17:29:04 2010 -0500 +++ b/mercurial/hgweb/server.py Sun Oct 17 04:13:35 2010 +0200 @@ -180,7 +180,7 @@ def do_write(self): from OpenSSL.SSL import SysCallError try: - super(_shgwebhandler, self).do_write() + _hgwebhandler.do_write(self) except SysCallError, inst: if inst.args[0] != errno.EPIPE: raise @@ -188,7 +188,7 @@ def handle_one_request(self): from OpenSSL.SSL import SysCallError, ZeroReturnError try: - super(_shgwebhandler, self).handle_one_request() + _hgwebhandler.handle_one_request(self) except (SysCallError, ZeroReturnError): self.close_connection = True pass