mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-06 13:44:55 +00:00
Fix If-Modified-Since regression
This commit is contained in:
parent
57b39d8793
commit
bea0b55576
1 changed files with 1 additions and 1 deletions
|
@ -6164,7 +6164,7 @@ static const char *GetContentType(struct Asset *a, const char *path, size_t n) {
|
||||||
static bool IsNotModified(struct Asset *a) {
|
static bool IsNotModified(struct Asset *a) {
|
||||||
if (cpm.msg.version < 10) return false;
|
if (cpm.msg.version < 10) return false;
|
||||||
if (!HasHeader(kHttpIfModifiedSince)) return false;
|
if (!HasHeader(kHttpIfModifiedSince)) return false;
|
||||||
return a->lastmodified >=
|
return a->lastmodified <
|
||||||
ParseHttpDateTime(HeaderData(kHttpIfModifiedSince),
|
ParseHttpDateTime(HeaderData(kHttpIfModifiedSince),
|
||||||
HeaderLength(kHttpIfModifiedSince));
|
HeaderLength(kHttpIfModifiedSince));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue