Changeset 9255 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-01-02T11:39:21+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/HttpClient.java
r9249 r9255 78 78 connection.setConnectTimeout(connectTimeout); 79 79 connection.setReadTimeout(readTimeout); 80 connection.setInstanceFollowRedirects( maxRedirects > 0);80 connection.setInstanceFollowRedirects(false); // we do that ourselves 81 81 if (ifModifiedSince > 0) { 82 82 connection.setIfModifiedSince(ifModifiedSince); … … 136 136 throw new IOException(msg); 137 137 } else if (maxRedirects > 0) { 138 url = new URL( redirectLocation);138 url = new URL(url, redirectLocation); 139 139 maxRedirects--; 140 140 Main.info(tr("Download redirected to ''{0}''", redirectLocation));
Note:
See TracChangeset
for help on using the changeset viewer.