Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions client/src/main/java/io/a2a/client/A2ACardResolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public A2ACardResolver(A2AHttpClient httpClient, String baseUrl, String agentCar
Map<String, String> authHeaders) throws A2AClientError {
this.httpClient = httpClient;
agentCardPath = agentCardPath == null || agentCardPath.isEmpty() ? DEFAULT_AGENT_CARD_PATH : agentCardPath;
while (agentCardPath.startsWith("/")) {
agentCardPath = agentCardPath.substring(1);
}
try {
this.url = new URI(baseUrl).resolve(agentCardPath).toString();
} catch (URISyntaxException e) {
Expand Down