Skip to content

Commit

Permalink
Prevent duplicate request header size gathering
Browse files Browse the repository at this point in the history
I'm not sure why but this was happening twice. mod_log_forensic.c
seemed to make use of this hook for inspecting the request, so
I thought it would be safe...
  • Loading branch information
mpchadwick committed Feb 23, 2017
1 parent c70ce8f commit 9fb4cf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod_log_header_size.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ static int log_header_size_pre_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_
static int log_header_size_post_read_request(request_rec *r)
{
log_header_size_config_t *cf = ap_get_module_config(r->connection->conn_config, &log_header_size_module);
apr_table_do(gather_header_size, &cf->bytes_in_header, r->headers_in, NULL);
if (cf->bytes_in_header == 0) {
apr_table_do(gather_header_size, &cf->bytes_in_header, r->headers_in, NULL);
}

return OK;
}
Expand Down

0 comments on commit 9fb4cf8

Please sign in to comment.