X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_cache_api.c;h=832656466972a38be1a69ead9a98e14f798b4fb9;hb=f41f0417afd1d0ad0609fde76a99d907117ed669;hp=a03a9616f1dba581c81b7b706681dc268a57c1c1;hpb=1382fe5a3ed5209ab05745ca95495885e85ff2a0;p=m6w6%2Fext-http diff --git a/http_cache_api.c b/http_cache_api.c index a03a961..8326564 100644 --- a/http_cache_api.c +++ b/http_cache_api.c @@ -85,6 +85,7 @@ PHP_HTTP_API zend_bool _http_match_last_modified_ex(const char *entry, time_t t, if ((chr_ptr = strrchr(modified, ';'))) { chr_ptr = 0; } + retval = (t <= http_parse_date(modified)); efree(modified); return retval; @@ -229,6 +230,8 @@ void _http_ob_etaghandler(char *output, uint output_len, http_send_etag_ex(etag, strlen(etag), &sent_header); if (http_match_etag("HTTP_IF_NONE_MATCH", etag)) { + /* force exit; ob within ob does not work */ + HTTP_G->force_exit = 1; http_exit_ex(304, sent_header, etag, 0); }