Skip to content

Commit 44c1968

Browse files
authored
Java 11 HTTP client incorrectly reports 'invalid URI' exception message when cause is thread interruption (OpenFeign#2191)
1 parent b59aa32 commit 44c1968

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java11/src/main/java/feign/http2client/Http2Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public Response execute(Request request, Options options) throws IOException {
9898
httpResponse = clientForRequest.send(httpRequest, BodyHandlers.ofByteArray());
9999
} catch (final InterruptedException e) {
100100
Thread.currentThread().interrupt();
101-
throw new IOException("Invalid uri " + request.url(), e);
101+
throw new IOException(e);
102102
}
103103

104104
return toFeignResponse(request, httpResponse);

0 commit comments

Comments
 (0)