Changeset 9915 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-03-02T21:40:43+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/HttpClient.java
r9912 r9915 271 271 if (uncompressAccordingToContentDisposition && Compression.NONE.equals(compression)) { 272 272 final String contentDisposition = getHeaderField("Content-Disposition"); 273 final Matcher matcher = Pattern.compile("filename=\"([^\"]+)\"").matcher(contentDisposition != null ? contentDisposition : ""); 273 final Matcher matcher = Pattern.compile("filename=\"([^\"]+)\"").matcher( 274 contentDisposition != null ? contentDisposition : ""); 274 275 if (matcher.find()) { 275 276 Main.debug("Uncompressing input stream according to Content-Disposition header: {0}", contentDisposition);
Note:
See TracChangeset
for help on using the changeset viewer.