]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Set timestamps for newly created store entry during ICAP request satisfaction.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 11 Dec 2009 23:37:30 +0000 (16:37 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 11 Dec 2009 23:37:30 +0000 (16:37 -0700)
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 e7c0b072b64f7936ed9a92a585f25821adaf903e..434c1ce2026a29575592806c8767250158f5968e 100644 (file)
@@ -1386,6 +1386,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();