Skip to content

Commit b73adfe

Browse files
committed
fix: Remove newly added exceptionally handling in JdkA2AHttpClient
1 parent 248c7c5 commit b73adfe

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

http-client/src/main/java/io/a2a/client/http/JdkA2AHttpClient.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ public void onComplete() {
125125
// Send the response async, and let the subscriber handle the lines.
126126
return httpClient.sendAsync(request, bodyHandler)
127127
.thenAccept(response -> {
128-
if (!JdkHttpResponse.success(response)) {
129-
subscriber.onError(new IOException("Request failed " + response.statusCode()));
130-
}
128+
// Status checking is now handled in the body handler
131129
});
132130
}
133131
}

0 commit comments

Comments
 (0)