forked from mirrors/kore
set tstamp to 0 in the correct location
This commit is contained in:
parent
0dda6f996f
commit
7a2e855d28
|
@ -51,6 +51,7 @@ serve_style_css(struct http_request *req)
|
|||
char *date;
|
||||
time_t tstamp;
|
||||
|
||||
tstamp = 0;
|
||||
if (http_request_header_get(req, "if-modified-since", &date)) {
|
||||
tstamp = kore_date_to_time(date);
|
||||
free(date);
|
||||
|
@ -58,7 +59,6 @@ serve_style_css(struct http_request *req)
|
|||
kore_debug("header was present with %ld", tstamp);
|
||||
}
|
||||
|
||||
tstamp = 0;
|
||||
if (tstamp != 0 && tstamp <= static_mtime_css_style) {
|
||||
ret = http_response(req, 304, NULL, 0);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue