changeset 131:68a7a15b0eb5

format Ignore-this: b956bc580c14c347ec202e72b4b26870
author drewp@bigasterisk.com
date Fri, 11 Oct 2013 22:52:17 -0700
parents 57ae7dc0f417
children d379351d398d
files service/shuttlepro/shuttleservice.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/service/shuttlepro/shuttleservice.py	Fri Oct 11 22:36:41 2013 -0700
+++ b/service/shuttlepro/shuttleservice.py	Fri Oct 11 22:52:17 2013 -0700
@@ -85,12 +85,10 @@
     port = 9103
     poller = Poller()
     reactor.listenTCP(port, cyclone.web.Application(handlers=[
-        (r'/()', Index, {"path" : ".", # security hole- serves this dir too
-          "default_filename" : "index.html"}),
+        (r'/()', Index, {"path" : ".", "default_filename" : "index.html"}),
         (r'/graph', GraphResource),
-        (r'/(.*)', cyclone.web.StaticFileHandler,
-         {"path" : ".", # security hole- serves this dir too
-          "default_filename" : "index.html"}),
+        # serves this source code too
+        (r'/(.*)', cyclone.web.StaticFileHandler, {"path" : "."}) 
         ], poller=poller))
     log.info("serving on %s" % port)
     reactor.run()