We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 248c7c5 commit b73adfeCopy full SHA for b73adfe
1 file changed
http-client/src/main/java/io/a2a/client/http/JdkA2AHttpClient.java
@@ -125,9 +125,7 @@ public void onComplete() {
125
// Send the response async, and let the subscriber handle the lines.
126
return httpClient.sendAsync(request, bodyHandler)
127
.thenAccept(response -> {
128
- if (!JdkHttpResponse.success(response)) {
129
- subscriber.onError(new IOException("Request failed " + response.statusCode()));
130
- }
+ // Status checking is now handled in the body handler
131
});
132
}
133
0 commit comments