Commits

James Mills committed 9b3466a

Fixed controllers circuits.web example

  • Participants
  • Parent commits 971511e

Comments (0)

Files changed (1)

examples/web/controllers.py

 class Root(Controller):
 
     def index(self):
-        agent = self.request.headers["User-Agent"]
-        if "iPad" in agent:
-            return "Hello iPad!"
-        else:
-            return "Hello World!"
+        return "Hello World!"
 
 (Server(("0.0.0.0", 8000)) + Root() + Logger()).run()