X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_cache_api.c;fp=http_cache_api.c;h=c8ab27cdd8bac0fa322d56a80eb2823f1030285d;hp=2685cc99595dd3596320a7a779cc4d0beb0d1a13;hb=4fcbd8e8ae31611c5197ff2369673b5939fc2b80;hpb=3b81f44e1506fa9356db0b630401f8ff95e9d89a diff --git a/http_cache_api.c b/http_cache_api.c index 2685cc9..c8ab27c 100644 --- a/http_cache_api.c +++ b/http_cache_api.c @@ -12,13 +12,9 @@ /* $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif - +#define HTTP_WANT_SAPI #include "php_http.h" -#include "SAPI.h" #include "php_output.h" #include "php_streams.h" @@ -69,7 +65,7 @@ PHP_HTTP_API time_t _http_last_modified(const void *data_ptr, http_send_mode dat switch (data_mode) { - case SEND_DATA: return time(NULL); + case SEND_DATA: return HTTP_GET_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; }