We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee10c1f commit 628714cCopy full SHA for 628714c
1 file changed
src/a2a/server/routes/jsonrpc_routes.py
@@ -61,17 +61,9 @@ def create_jsonrpc_routes(
61
enable_v0_3_compat=enable_v0_3_compat,
62
)
63
64
- normalized_path = rpc_url
65
- if not rpc_url.startswith('/'):
66
- logger.warning(
67
- "The rpc_url '%s' does not start with a leading slash '/'. automatically prepending it.",
68
- rpc_url,
69
- )
70
- normalized_path = f'/{rpc_url}'
71
-
72
return [
73
Route(
74
- path=normalized_path,
+ path=rpc_url,
75
endpoint=dispatcher.handle_requests,
76
methods=['POST'],
77
0 commit comments