X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_cache_api.c;h=9a6ea89057ea0d122ad68d98b63b958de507f614;hp=7c748cc46023c73769fc5099bce37d003aed13bf;hb=98d8a1dced6ae8bde1953f439de7fd9c453e5971;hpb=2f39230d83bdf816dcae52c7e5a1b019347f0e7b diff --git a/http_cache_api.c b/http_cache_api.c index 7c748cc..9a6ea89 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; }