Skip to content

Commit f70c048

Browse files
committed
Removed explicit setting of HttpURLConnection Accept-Encoding header value as it disables automatic response decompression
1 parent 48ec705 commit f70c048

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/kotlin/io/ionic/libs/ionfiletransferlib/IONFLTRController.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,6 @@ class IONFLTRController internal constructor(
285285
}
286286
}
287287

288-
// gzip to allow for better progress tracking
289-
connection.setRequestProperty("Accept-Encoding", "gzip")
290-
291288
if (useChunkedMode) {
292289
connection.setChunkedStreamingMode(BUFFER_SIZE)
293290
connection.setRequestProperty("Transfer-Encoding", "chunked")

0 commit comments

Comments
 (0)