Mercurial > hg > webaudioevaluationtool
diff scripts/pythonServer.py @ 2237:6ffef0759d29
Python server correctly responds to keygen and save requests
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Fri, 15 Apr 2016 13:24:53 +0100 |
parents | 4e334c942d41 |
children |
line wrap: on
line diff
--- a/scripts/pythonServer.py Fri Apr 15 13:18:53 2016 +0100 +++ b/scripts/pythonServer.py Fri Apr 15 13:24:53 2016 +0100 @@ -162,7 +162,7 @@ if(request.client_address[0] == "127.0.0.1"): if (request.path == "/favicon.ico"): send404(request) - elif (request.path.split('?',1)[0] == "/keygen.php"): + elif (request.path.split('?',1)[0] == "/php/keygen.php"): keygen(request); else: request.path = request.path.split('?',1)[0] @@ -179,7 +179,7 @@ def http_do_POST(request): if(request.client_address[0] == "127.0.0.1"): - if (request.path.rsplit('?',1)[0] == "/save" or request.path.rsplit('?',1)[0] == "/save.php"): + if (request.path.rsplit('?',1)[0] == "/save" or request.path.rsplit('?',1)[0] == "/php/save.php"): saveFile(request) else: send404(request)