Mercurial > hg > nginx
diff src/http/modules/ngx_http_log_module.c @ 4726:dad38cdaf496 stable-1.2
Merge of r4686, r4687: $status variable.
Contains response status code as a 3-digit integer
(with leading zeroes if necessary), or one of the following values:
000 - response status code has not yet been assigned
009 - HTTP/0.9 request is being processed
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 02 Jul 2012 16:53:36 +0000 |
parents | 5a4666d4b6cb |
children | 4c36e15651f7 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_log_module.c +++ b/src/http/modules/ngx_http_log_module.c @@ -584,10 +584,7 @@ ngx_http_log_status(ngx_http_request_t * status = r->headers_out.status; } else if (r->http_version == NGX_HTTP_VERSION_9) { - *buf++ = '0'; - *buf++ = '0'; - *buf++ = '9'; - return buf; + status = 9; } else { status = 0;