Changeset 15742 in josm for trunk/src/org
- Timestamp:
- 2020-01-20T23:18:42+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/HttpClient.java
r15741 r15742 23 23 import java.util.regex.Pattern; 24 24 import java.util.zip.GZIPInputStream; 25 import java.util.zip.InflaterInputStream; 25 26 26 27 import org.openstreetmap.josm.data.validation.routines.DomainValidator; … … 112 113 } 113 114 this.requestMethod = requestMethod; 114 this.headers.put("Accept-Encoding", "gzip ");115 this.headers.put("Accept-Encoding", "gzip, deflate"); 115 116 } 116 117 … … 376 377 InputStream in = getInputStream(); 377 378 in = new ProgressInputStream(in, getContentLength(), monitor); 378 in = "gzip".equalsIgnoreCase(getContentEncoding()) ? new GZIPInputStream(in) : in; 379 in = "gzip".equalsIgnoreCase(getContentEncoding()) 380 ? new GZIPInputStream(in) 381 : "deflate".equalsIgnoreCase(getContentEncoding()) 382 ? new InflaterInputStream(in) 383 : in; 379 384 Compression compression = Compression.NONE; 380 385 if (uncompress) {
Note:
See TracChangeset
for help on using the changeset viewer.