Mercurial > code > home > repos > homeauto
changeset 936:b1eabeb7dc66
format
Ignore-this: b956bc580c14c347ec202e72b4b26870
darcs-hash:20131012055217-312f9-3debd15affd6b52e56d4079291aed076b92640c1
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 11 Oct 2013 22:52:17 -0700 |
parents | 9bb3eac740f0 |
children | 38a4769595e2 |
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()