Mercurial > hg > webaudioevaluationtool
changeset 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 | 82c6c39d75e3 |
children | 8dd13f279c32 27f3cbb3a960 4b527727d0c7 |
files | scripts/pythonServer.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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)