Changeset 31839 for main/trunk/gli/src/org/greenstone
- Timestamp:
- 2017-08-01T22:13:20+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/gui/DownloadPane.java
r31821 r31839 611 611 private String getRedirectURL(String url_str) { 612 612 boolean noMoreRedirects = false; 613 613 boolean gotException = false; 614 614 615 HttpURLConnection connection = null; 615 616 if(url_str.startsWith("http:") || url_str.startsWith("https:")) { // only test http urls … … 642 643 connection.disconnect(); 643 644 } catch(Exception e) { 645 gotException = true; 644 646 if(connection != null) { 645 647 connection.disconnect(); … … 650 652 } 651 653 652 if(noMoreRedirects ) {654 if(noMoreRedirects || gotException) { 653 655 return url_str; 654 656 }
Note:
See TracChangeset
for help on using the changeset viewer.