Permalink
Browse files

[394281] PingThread of Tomcat/JBoss adapters follows redirects

  • Loading branch information...
1 parent 3395f8c commit d4ca9535621aab7b537af57f7ee354fcbc6b27cb @elsony elsony committed Nov 28, 2012
@@ -84,6 +84,7 @@ protected void ping() {
Trace.trace(Trace.FINEST, "Ping: pinging " + count);
URL pingUrl = new URL(url);
URLConnection conn = pingUrl.openConnection();
+ ((HttpURLConnection)conn).setInstanceFollowRedirects(false);
((HttpURLConnection)conn).getResponseCode();
// ping worked - server is up

0 comments on commit d4ca953

Please sign in to comment.