hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1080575 - /httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingHttpClient.java
Date Fri, 11 Mar 2011 14:18:29 GMT
Author: jonm
Date: Fri Mar 11 14:18:28 2011
New Revision: 1080575

URL: http://svn.apache.org/viewvc?rev=1080575&view=rev
Log:
Fix duplicate Warning 110 (stale response) header generated by
stale-while-revalidate.

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingHttpClient.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingHttpClient.java?rev=1080575&r1=1080574&r2=1080575&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingHttpClient.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/CachingHttpClient.java
Fri Mar 11 14:18:28 2011
@@ -428,7 +428,6 @@ public class CachingHttpClient implement
                 && !staleResponseNotAllowed(request, entry, now)
                 && validityPolicy.mayReturnStaleWhileRevalidating(entry, now)) {
                 final HttpResponse resp = generateCachedResponse(request, context, entry,
now);
-                resp.addHeader(HeaderConstants.WARNING, "110 localhost \"Response is stale\"");
                 
                 asynchRevalidator.revalidateCacheEntry(target, request, context, entry);
                 



Mime
View raw message