2
0
Fork 0

add missing http version to %r placeholder in mod_accesslog

personal/stbuehler/wip
Thomas Porzelt 2009-01-06 23:25:15 +01:00
parent 2fb007bd3d
commit 4c49705c16
1 changed files with 5 additions and 1 deletions

View File

@ -217,8 +217,9 @@ static GString *al_format_log(connection *con, GArray *format) {
response *resp = &vr->response;
request *req = &vr->request;
physical *phys = &vr->physical;
gchar *tmp_str;
gchar *tmp_str = NULL;
GString *tmp_gstr = g_string_sized_new(128);
guint len = 0;
for (guint i = 0; i < format->len; i++) {
al_format_entry *e = &g_array_index(format, al_format_entry, i);
@ -266,6 +267,9 @@ static GString *al_format_log(connection *con, GArray *format) {
al_append_escaped(str, req->uri.orig_path);
g_string_append_c(str, '?');
al_append_escaped(str, req->uri.query);
g_string_append_c(str, ' ');
tmp_str = http_version_string(req->http_version, &len);
g_string_append_len(str, tmp_str, len);
break;
case AL_FORMAT_STATUS_CODE:
g_string_append_printf(str, "%d", resp->http_status);