Changeset 13099 in josm for trunk/src/org
- Timestamp:
- 2017-11-08T22:48:01+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/HttpClient.java
r12921 r13099 14 14 import java.net.HttpURLConnection; 15 15 import java.net.URL; 16 import java.nio.charset.StandardCharsets; 16 17 import java.util.Collections; 17 18 import java.util.List; … … 114 115 if ("PUT".equals(requestMethod) || "POST".equals(requestMethod) || "DELETE".equals(requestMethod)) { 115 116 Logging.info("{0} {1} ({2}) ...", requestMethod, url, Utils.getSizeString(requestBody.length, Locale.getDefault())); 117 if (Logging.isTraceEnabled() && requestBody.length > 0) { 118 Logging.trace("BODY: {0}", new String(requestBody, StandardCharsets.UTF_8)); 119 } 116 120 connection.setFixedLengthStreamingMode(requestBody.length); 117 121 connection.setDoOutput(true);
Note:
See TracChangeset
for help on using the changeset viewer.