Skip to content

Commit

Permalink
setInstanceFollowRedirects(true)
Browse files Browse the repository at this point in the history
  • Loading branch information
thest1 committed Oct 26, 2011
1 parent 69a7210 commit ccdcf09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/fedorvlasov/lazylist/ImageLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ private Bitmap getBitmap(String url)
HttpURLConnection conn = (HttpURLConnection)imageUrl.openConnection();
conn.setConnectTimeout(30000);
conn.setReadTimeout(30000);
conn.setInstanceFollowRedirects(true);
InputStream is=conn.getInputStream();
OutputStream os = new FileOutputStream(f);
Utils.CopyStream(is, os);
Expand Down

0 comments on commit ccdcf09

Please sign in to comment.