mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 15:03:34 +00:00
Update redbean If-Modified-Since check to accept same timestamp (#562)
This commit is contained in:
parent
b76540105d
commit
e204fc0820
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue