Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/progress/NullProgressMonitor.java
r14153 r15233 57 57 @Override 58 58 public void indeterminateSubTask(String title) { 59 Logging.debug(title); 59 if (title != null) 60 Logging.debug(title); 60 61 } 61 62 -
trunk/src/org/openstreetmap/josm/tools/HttpClient.java
r15229 r15233 176 176 maxRedirects--; 177 177 Logging.info(tr("Download redirected to ''{0}''", redirectLocation)); 178 return connect(); 178 response = connect(); 179 successfulConnection = true; 180 return response; 179 181 } else if (maxRedirects == 0) { 180 182 String msg = tr("Too many redirects to the download URL detected. Aborting."); … … 534 536 */ 535 537 public final byte[] getRequestBody() { 536 return requestBody;538 return Utils.copyArray(requestBody); 537 539 } 538 540 -
trunk/test/unit/org/openstreetmap/josm/JOSMFixture.java
r14253 r15233 31 31 import org.openstreetmap.josm.spi.preferences.Config; 32 32 import org.openstreetmap.josm.testutils.JOSMTestRules; 33 import org.openstreetmap.josm.tools.Http1Client; 34 import org.openstreetmap.josm.tools.HttpClient; 33 35 import org.openstreetmap.josm.tools.I18n; 34 36 import org.openstreetmap.josm.tools.JosmRuntimeException; … … 109 111 Config.setBaseDirectoriesProvider(JosmBaseDirectories.getInstance()); 110 112 Config.setUrlsProvider(JosmUrls.getInstance()); 113 HttpClient.setFactory(Http1Client::new); 111 114 pref.resetToInitialState(); 112 115 pref.enableSaveOnPut(false);
Note:
See TracChangeset
for help on using the changeset viewer.