WhisperSystems/TextSecure — pull request #1887 by mcginty (2014-08-29 22:14:46+00:00)
Title: allow url client to follow redirects before checking response code

getInputStream is the method that follows redirects, so we need to call that first to get to the final URL before checking the status code.

evidence: http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7u40-b43/sun/net/www/protocol/http/HttpURLConnection.java/