Commit 03db006f authored by Peter-Bernd Otte's avatar Peter-Bernd Otte

optimised for JSON HTTP queries

parent faffce95
......@@ -75,7 +75,8 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
self.send_header("Access-Control-Allow-Origin", "*")
# self.path equals GET Parameter: "/foo/bar/".
erg = parse.parse("/{topic}/set?{value:d}", self.path)
erg = parse.parse("/{topic}/set?{value:f}{}", self.path)
if not erg: erg = parse.parse("/{topic}/set?{value:d}{}", self.path)
if not erg: erg = parse.parse("/{topic}", self.path)
topic = unquote(erg['topic']) if erg else None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment