Skip to content

Commit 628714c

Browse files
committed
remove normalization of rpc_url in create_jsonrpc_routes
1 parent ee10c1f commit 628714c

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/a2a/server/routes/jsonrpc_routes.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,9 @@ def create_jsonrpc_routes(
6161
enable_v0_3_compat=enable_v0_3_compat,
6262
)
6363

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-
7264
return [
7365
Route(
74-
path=normalized_path,
66+
path=rpc_url,
7567
endpoint=dispatcher.handle_requests,
7668
methods=['POST'],
7769
)

0 commit comments

Comments
 (0)