X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_cache_api.c;h=adba374d5c65ef90726a5e4d4f9100a07a092709;hp=7c748cc46023c73769fc5099bce37d003aed13bf;hb=c1cf3f178414800e4010735765ac8d727672584e;hpb=2f39230d83bdf816dcae52c7e5a1b019347f0e7b diff --git a/http_cache_api.c b/http_cache_api.c index 7c748cc..adba374 100644 --- a/http_cache_api.c +++ b/http_cache_api.c @@ -64,7 +64,7 @@ PHP_HTTP_API time_t _http_last_modified(const void *data_ptr, http_send_mode dat php_stream_statbuf ssb; switch (data_mode) { - case SEND_DATA: return HTTP_GET_REQUEST_TIME(); + case SEND_DATA: return HTTP_G->request.time; case SEND_RSRC: return php_stream_stat((php_stream *) data_ptr, &ssb) ? 0 : ssb.sb.st_mtime; default: return php_stream_stat_path((char *) data_ptr, &ssb) ? 0 : ssb.sb.st_mtime; } @@ -85,7 +85,7 @@ PHP_HTTP_API zend_bool _http_match_last_modified_ex(const char *entry, time_t t, chr_ptr = 0; } - retval = (t <= http_parse_date(modified)); + retval = (t <= http_parse_date_ex(modified, 1)); efree(modified); return retval; }