Skip to content

Commit

Permalink
Java 11 HTTP client incorrectly reports 'invalid URI' exception messa…
Browse files Browse the repository at this point in the history
…ge when cause is thread interruption (#2191)
  • Loading branch information
gromspys authored Oct 2, 2023
1 parent c7aa85c commit e9b0765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java11/src/main/java/feign/http2client/Http2Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public Response execute(Request request, Options options) throws IOException {
httpResponse = clientForRequest.send(httpRequest, BodyHandlers.ofByteArray());
} catch (final InterruptedException e) {
Thread.currentThread().interrupt();
throw new IOException("Invalid uri " + request.url(), e);
throw new IOException(e);
}

return toFeignResponse(request, httpResponse);
Expand Down

0 comments on commit e9b0765

Please sign in to comment.