MCPcopy Index your code
hub / github.com/apache/httpd / ap_set_last_modified

Function ap_set_last_modified

server/protocol.c:2280–2289  ·  view source on GitHub ↗

* This function sets the Last-Modified output header field to the value * of the mtime field in the request structure - rationalized to keep it from * being in the future. */

Source from the content-addressed store, hash-verified

2278 * being in the future.
2279 */
2280AP_DECLARE(void) ap_set_last_modified(request_rec *r)
2281{
2282 if (!r->assbackwards) {
2283 apr_time_t mod_time = ap_rationalize_mtime(r, r->mtime);
2284 char *datestr = apr_palloc(r->pool, APR_RFC822_DATE_LEN);
2285
2286 apr_rfc822_date(datestr, mod_time);
2287 apr_table_setn(r->headers_out, "Last-Modified", datestr);
2288 }
2289}
2290
2291typedef struct hdr_ptr {
2292 ap_filter_t *f;

Callers 9

cache_accept_headersFunction · 0.85
dav_fs_set_headersFunction · 0.85
dialup_handlerFunction · 0.85
index_directoryFunction · 0.85
reflector_handlerFunction · 0.85
includes_filterFunction · 0.85
default_handlerFunction · 0.85
http_protocol.hFile · 0.85

Calls 1

ap_rationalize_mtimeFunction · 0.85

Tested by 1

dialup_handlerFunction · 0.68