Commits

Anonymous committed 6d7f6e9

A peer certificate is now a required keyword.

  • Participants
  • Parent commits d719aa3

Comments (0)

Files changed (1)

examples/web/sslserver.py

 #!/usr/bin/env python
 
+from circuits import Debugger
 from circuits.web import Server, Controller
 
 class Root(Controller):
 
-    def index(self):
+    def index(self, peer_cert):
         return "Hello World!"
 
-(Server(8000, ssl=True, certfile="cert.pem") + Root()).run()
+(Server(("localhost", 8000), ssl=True, certfile="cert.pem") + Debugger() + Root()).run()