- fix usage of request time
[m6w6/ext-http] / http_cache_api.c
index 7c748cc46023c73769fc5099bce37d003aed13bf..9a6ea89057ea0d122ad68d98b63b958de507f614 100644 (file)
@@ -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;
        }