8297749: Remove duplicate space in the ProtocolException message being thrown from HttpURLConnection
Reviewed-by: dfuchs, jpai
This commit is contained in:
parent
c7a679fbdd
commit
5dcaf6cc6c
src/java.base/share/classes/sun/net/www/protocol/http
test/jdk/sun/net/www/protocol/http
@ -1999,8 +1999,8 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
|
||||
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;
|
||||
|
@ -70,7 +70,7 @@ public class NTLMTest
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user