]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix setting timestamp for NOT MODIFIED replies
authorwessels <>
Tue, 19 Nov 1996 00:40:36 +0000 (00:40 +0000)
committerwessels <>
Tue, 19 Nov 1996 00:40:36 +0000 (00:40 +0000)
src/client_side.cc

index 2ea2091421657be7922318ff98c4318acd8bc20b..1b76735875df9cfbb80c404921b809f24e7a4d77 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.66 1996/11/15 00:36:15 wessels Exp $
+ * $Id: client_side.cc,v 1.67 1996/11/18 17:40:36 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -453,7 +453,6 @@ icpHandleIMSReply(int fd, StoreEntry * entry, void *data)
        storeUnregister(entry, fd);
        storeUnlockObject(entry);
        entry = icpState->entry = oldentry;
-       entry->timestamp = squid_curtime;
        if (mime_headers_end(hbuf)) {
            httpParseReplyHeaders(hbuf, entry->mem_obj->reply);
            timestampsSet(entry);
@@ -461,6 +460,7 @@ icpHandleIMSReply(int fd, StoreEntry * entry, void *data)
            debug(33, 1, "icpHandleIMSReply: No end-of-headers, len=%d\n", len);
            debug(33, 1, "  --> '%s'\n", entry->url);
        }
+       entry->timestamp = squid_curtime;
        put_free_8k_page(hbuf);
        if (unlink_request) {
            requestUnlink(entry->mem_obj->request);