]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Alex Rousskov <rousskov@measurement-factory.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Dec 2009 01:03:18 +0000 (14:03 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 16 Dec 2009 01:03:18 +0000 (14:03 +1300)
Set timestamps for newly created store entry during ICAP request satisfaction.

If the ICAP-generated response lacks the HTTP Date header, and we do not call
timestampsSet(), Squid says:

WARNING: An error inside Squid has caused an HTTP reply without Date:.

src/client_side_request.cc

index 608a447d2d65896eb9440ac7d34cb9a44da9db34..f47cfb461abf57e8204150975860f5363ae10419 100644 (file)
@@ -1373,6 +1373,7 @@ ClientHttpRequest::noteAdaptationAnswer(HttpMsg *msg)
         request_satisfaction_mode = true;
         request_satisfaction_offset = 0;
         storeEntry()->replaceHttpReply(new_rep);
+        storeEntry()->timestampsSet();
 
         if (!adaptedBodySource) // no body
             storeEntry()->complete();