diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2004-12-21 12:30:30 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2004-12-21 12:30:30 +0000 |
| commit | b1dfe478a03ad6919f174812951f6a2bec8befae (patch) | |
| tree | d8802484f8dbf5309b17a95b5fc9749627720a53 /src/http/ngx_http_log_handler.c | |
| parent | 5275a8b3ac534ff36973801ec2aa6ce1214d7cc9 (diff) | |
| download | nginx-release-0.1.13.tar.gz nginx-release-0.1.13.tar.bz2 | |
nginx-0.1.13-RELEASE importrelease-0.1.13
*) Feature: the server_names_hash and server_names_hash_threshold
directives.
*) Bugfix: the *.domain.tld names in the "server_name" directive did
not work.
*) Bugfix: the %request_length log parameter logged the incorrect
length.
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_log_handler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http/ngx_http_log_handler.c b/src/http/ngx_http_log_handler.c index 71cbb2953..6702c4f77 100644 --- a/src/http/ngx_http_log_handler.c +++ b/src/http/ngx_http_log_handler.c @@ -115,12 +115,12 @@ ngx_http_log_op_name_t ngx_http_log_fmt_ops[] = { { ngx_string("pipe"), 1, ngx_http_log_pipe }, { ngx_string("time"), sizeof("28/Sep/1970:12:00:00") - 1, ngx_http_log_time }, - { ngx_string("msec"), TIME_T_LEN + 4, ngx_http_log_msec }, + { ngx_string("msec"), NGX_TIME_T_LEN + 4, ngx_http_log_msec }, { ngx_string("request"), 0, ngx_http_log_request }, { ngx_string("status"), 3, ngx_http_log_status }, { ngx_string("length"), NGX_OFF_T_LEN, ngx_http_log_length }, { ngx_string("apache_length"), NGX_OFF_T_LEN, ngx_http_log_apache_length }, - { ngx_string("request_length"), NGX_OFF_T_LEN, + { ngx_string("request_length"), NGX_SIZE_T_LEN, ngx_http_log_request_length }, { ngx_string("i"), NGX_HTTP_LOG_ARG, ngx_http_log_header_in }, { ngx_string("o"), NGX_HTTP_LOG_ARG, ngx_http_log_header_out }, @@ -290,7 +290,7 @@ static u_char *ngx_http_log_apache_length(ngx_http_request_t *r, u_char *buf, static u_char *ngx_http_log_request_length(ngx_http_request_t *r, u_char *buf, uintptr_t data) { - return ngx_sprintf(buf, "%O", r->request_length); + return ngx_sprintf(buf, "%z", r->request_length); } |
