Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-07-08 17:17:10 -0400
committerslewis2009-07-08 17:17:10 -0400
commitd5297dc60c4e6b1857f66cf660e9e3e9092d6414 (patch)
tree5f45caa957da2fb4a2ee2b51b471ca214413beaf /providers/bundles/org.eclipse.ecf.provider.filetransfer
parent62501a409810fa3f7a9d488e0a0eaf179e138d61 (diff)
downloadorg.eclipse.ecf-d5297dc60c4e6b1857f66cf660e9e3e9092d6414.tar.gz
org.eclipse.ecf-d5297dc60c4e6b1857f66cf660e9e3e9092d6414.tar.xz
org.eclipse.ecf-d5297dc60c4e6b1857f66cf660e9e3e9092d6414.zip
Releasing work around on https://bugs.eclipse.org/bugs/show_bug.cgi?id=280205 to HEAD
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.filetransfer')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/UrlConnectionRetrieveFileTransfer.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/UrlConnectionRetrieveFileTransfer.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/UrlConnectionRetrieveFileTransfer.java
index bb1560f1a..dae16162f 100644
--- a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/UrlConnectionRetrieveFileTransfer.java
+++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/UrlConnectionRetrieveFileTransfer.java
@@ -443,7 +443,10 @@ public class UrlConnectionRetrieveFileTransfer extends AbstractRetrieveFileTrans
}
private void setCompressionRequestHeader() {
- if (rangeSpecification == null)
+ // Set request header for possible gzip encoding, but only if
+ // 1) The file range specification is null (we want the whole file)
+ // 2) The target remote file does *not* end in .gz (see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=280205)
+ if (getFileRangeSpecification() == null && !targetHasGzSuffix(super.getRemoteFileName()))
urlConnection.setRequestProperty(ACCEPT_ENCODING, CONTENT_ENCODING_ACCEPTED);
}

Back to the top