You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@abdera.apache.org by jm...@apache.org on 2006/08/15 00:27:28 UTC
svn commit: r431447 -
/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/cache/InMemoryCachedResponse.java
Author: jmsnell
Date: Mon Aug 14 15:27:26 2006
New Revision: 431447
URL: http://svn.apache.org/viewvc?rev=431447&view=rev
Log:
The Cache-control header wasn't being properly carried over to the cached response
Modified:
incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/cache/InMemoryCachedResponse.java
Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/cache/InMemoryCachedResponse.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/cache/InMemoryCachedResponse.java?rev=431447&r1=431446&r2=431447&view=diff
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/cache/InMemoryCachedResponse.java (original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/cache/InMemoryCachedResponse.java Mon Aug 14 15:27:26 2006
@@ -26,6 +26,7 @@
import java.util.Map;
import org.apache.abdera.protocol.client.Response;
+import org.apache.abdera.protocol.util.CacheControlUtil;
import org.apache.abdera.protocol.util.MethodHelper;
public class InMemoryCachedResponse
@@ -50,6 +51,7 @@
this.status_text = response.getStatusText();
this.uri = response.getUri();
this.headers = MethodHelper.getCacheableHeaders(response);
+ CacheControlUtil.parseCacheControl(this.getHeader("Cache-Control"), this);
getServerDate();
getInitialAge();
cacheStream(response.getInputStream());