set tstamp to 0 in the correct location

This commit is contained in:
Joris Vink 2013-06-26 16:57:34 +02:00
parent 0dda6f996f
commit 7a2e855d28
1 changed files with 1 additions and 1 deletions

View File

@ -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 {