View | Details | Raw Unified | Return to bug 47447
Collapse All | Expand All

(-)modules/metadata/mod_headers.c (+5 lines)
Lines 171-176 Link Here
171
{
171
{
172
    return apr_psprintf(r->pool, "t=%" APR_TIME_T_FMT, r->request_time);
172
    return apr_psprintf(r->pool, "t=%" APR_TIME_T_FMT, r->request_time);
173
}
173
}
174
static const char *header_request_remote_ip(request_rec *r, char *a)
175
{
176
    return r->connection->remote_ip;
177
}
174
178
175
/* unwrap_header returns HDR with any newlines converted into
179
/* unwrap_header returns HDR with any newlines converted into
176
 * whitespace if necessary. */
180
 * whitespace if necessary. */
Lines 836-841 Link Here
836
    format_tag_hash = apr_hash_make(p);
840
    format_tag_hash = apr_hash_make(p);
837
    register_format_tag_handler("D", (const void *)header_request_duration);
841
    register_format_tag_handler("D", (const void *)header_request_duration);
838
    register_format_tag_handler("t", (const void *)header_request_time);
842
    register_format_tag_handler("t", (const void *)header_request_time);
843
    register_format_tag_handler("a", (const void *)header_request_remote_ip);
839
    register_format_tag_handler("e", (const void *)header_request_env_var);
844
    register_format_tag_handler("e", (const void *)header_request_env_var);
840
    register_format_tag_handler("s", (const void *)header_request_ssl_var);
845
    register_format_tag_handler("s", (const void *)header_request_ssl_var);
841
846

Return to bug 47447