abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r431447 - /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/cache/InMemoryCachedResponse.java
Date Mon, 14 Aug 2006 22:27:28 GMT
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());



Mime
View raw message