We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98d6dda commit 1dda9b0Copy full SHA for 1dda9b0
src/ethereum_spec_tools/evm_tools/daemon.py
@@ -12,6 +12,7 @@
12
from socket import socket
13
from threading import Thread
14
from typing import Any, Tuple, Union
15
+from urllib.parse import parse_qs, urlparse
16
17
18
def daemon_arguments(subparsers: argparse._SubParsersAction) -> None:
@@ -58,6 +59,16 @@ def do_POST(self) -> None:
58
59
f"--state.reward={content['state']['reward']}",
60
]
61
62
+ query_string = urlparse(self.path).query
63
+ if query_string:
64
+ query = parse_qs(
65
+ query_string,
66
+ keep_blank_values=True,
67
+ strict_parsing=True,
68
+ errors="strict",
69
+ )
70
+ args += query.get("arg", [])
71
+
72
self.send_response(200)
73
self.send_header("Content-type", "application/octet-stream")
74
self.end_headers()
0 commit comments