From bb663cd96b3dc93f0efc90dce50a7d15e1734d03 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Sun, 21 Aug 2022 21:18:59 -0700 Subject: [PATCH] Update redbean If-Modified-Since check to accept same timestamp --- tool/net/redbean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/net/redbean.c b/tool/net/redbean.c index 5a3ba6ce8..4333b13de 100644 --- a/tool/net/redbean.c +++ b/tool/net/redbean.c @@ -5727,7 +5727,7 @@ static const char *GetContentType(struct Asset *a, const char *path, size_t n) { static bool IsNotModified(struct Asset *a) { if (cpm.msg.version < 10) return false; if (!HasHeader(kHttpIfModifiedSince)) return false; - return a->lastmodified < + return a->lastmodified <= ParseHttpDateTime(HeaderData(kHttpIfModifiedSince), HeaderLength(kHttpIfModifiedSince)); }