diff --git a/phew/server.py b/phew/server.py index 1bd09fa..720ac50 100644 --- a/phew/server.py +++ b/phew/server.py @@ -31,7 +31,7 @@ def urldecode(text): def _parse_query_string(query_string): result = {} for parameter in query_string.split("&"): - key, value = parameter.split("=") + key, value = parameter.split("=", 1) key = urldecode(key) value = urldecode(value) result[key] = value @@ -352,4 +352,4 @@ def run(host = "0.0.0.0", port = 80): loop = uasyncio.get_event_loop() loop.create_task(uasyncio.start_server(_handle_request, host, port)) - loop.run_forever() \ No newline at end of file + loop.run_forever()