diff options
author | Rob Austein <sra@hactrn.net> | 2007-08-09 03:46:14 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-08-09 03:46:14 +0000 |
commit | 0838db9c7b7a720a838aa8eb9a87ad14f5a4a30a (patch) | |
tree | e842b62f104143422a3714e07b43b17c8234663c /scripts/http-server.py | |
parent | dc6a8bf731bb4aae8c71f8540c581c83838bc109 (diff) |
Cleanup
svn path=/scripts/http-server.py; revision=849
Diffstat (limited to 'scripts/http-server.py')
-rw-r--r-- | scripts/http-server.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/http-server.py b/scripts/http-server.py index e5e63dc6..9ceaf78f 100644 --- a/scripts/http-server.py +++ b/scripts/http-server.py @@ -4,7 +4,7 @@ import rpki.https, tlslite.api certInfo = rpki.https.CertInfo("Carol") -def handler(self, query): - return 200, "I got:\n" + query +def handler(query, path): + return 200, "Path: %s\nQuery: %s" % (path, query) -rpki.https.server(certInfo=certInfo, handler=handler) +rpki.https.server(certInfo=certInfo, handlers={"/" : handler}) |