Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2008-10-21 16:24:42 +0000
committerslewis2008-10-21 16:24:42 +0000
commit74ed5411ceca51c655089de2470164f07f5016f2 (patch)
tree064dc6f4215d6ad0072fdd015a413ff30bfc43ed
parent2dca456aa46831988c7266d9d7b54f3ee9610a1e (diff)
downloadorg.eclipse.ecf-74ed5411ceca51c655089de2470164f07f5016f2.tar.gz
org.eclipse.ecf-74ed5411ceca51c655089de2470164f07f5016f2.tar.xz
org.eclipse.ecf-74ed5411ceca51c655089de2470164f07f5016f2.zip
Applying bug fix for 249990 to Release_2_0 branch.v20081106-2102
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/UrlConnectionRetrieveFileTransfer.java4
1 files changed, 4 insertions, 0 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 0d25c2b53..c937614bf 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
@@ -87,6 +87,8 @@ public class UrlConnectionRetrieveFileTransfer extends AbstractRetrieveFileTrans
if (this.bytesReceived <= 0 || this.fileLength <= this.bytesReceived)
throw new IOException(Messages.UrlConnectionRetrieveFileTransfer_RESUME_START_ERROR);
setRangeHeader("bytes=" + this.bytesReceived + "-"); //$NON-NLS-1$ //$NON-NLS-2$
+ // set max-age for cache control to 0 for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=249990
+ urlConnection.setRequestProperty("Cache-Control", "max-age=0"); //$NON-NLS-1$//$NON-NLS-2$
}
protected void setRequestHeaderValues() throws InvalidFileRangeSpecificationException {
@@ -105,6 +107,8 @@ public class UrlConnectionRetrieveFileTransfer extends AbstractRetrieveFileTrans
// See bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=247197
// also see http 1.1 rfc section 14-10 in http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
urlConnection.setRequestProperty("Connection", "close"); //$NON-NLS-1$ //$NON-NLS-2$
+ // set max-age for cache control to 0 for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=249990
+ urlConnection.setRequestProperty("Cache-Control", "max-age=0"); //$NON-NLS-1$//$NON-NLS-2$
}
private void setRangeHeader(String value) {

Back to the top