Skip to content

Commit

Permalink
8297749: Remove duplicate space in the ProtocolException message bein…
Browse files Browse the repository at this point in the history
…g thrown from HttpURLConnection

Reviewed-by: dfuchs, jpai
  • Loading branch information
izeye authored and jaikiran committed Nov 30, 2022
1 parent c7a679f commit 5dcaf6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1999,8 +1999,8 @@ private InputStream getInputStream0() throws IOException {
return inputStream;
} while (redirects < maxRedirects);

throw new ProtocolException("Server redirected too many " +
" times ("+ redirects + ")");
throw new ProtocolException("Server redirected too many times (" +
redirects + ")");
} catch (RuntimeException e) {
disconnectInternal();
rememberedException = e;
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/sun/net/www/protocol/http/NTLMTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static void runClient(Proxy proxy, int serverPort) {
uc.getInputStream().readAllBytes();

} catch (ProtocolException e) {
/* java.net.ProtocolException: Server redirected too many times (20) */
/* java.net.ProtocolException: Server redirected too many times (20) */
throw new RuntimeException("Failed: ProtocolException", e);
} catch (IOException ioe) {
/* IOException is OK. We are expecting "java.io.IOException: Server
Expand Down

1 comment on commit 5dcaf6c

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.