diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2012-07-02 16:53:36 +0000 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-07-02 16:53:36 +0000 |
| commit | c7fcd1e78a0af29d8242ba47a54b3651eeacf0e8 (patch) | |
| tree | 100bb69bd4e9a5e1cecbab9a1edb65330fdb8549 /src/http/modules | |
| parent | 7138ca1704831157e6cea929c3f87185016e0d17 (diff) | |
| download | nginx-c7fcd1e78a0af29d8242ba47a54b3651eeacf0e8.tar.gz nginx-c7fcd1e78a0af29d8242ba47a54b3651eeacf0e8.tar.bz2 | |
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
Diffstat (limited to 'src/http/modules')
| -rw-r--r-- | src/http/modules/ngx_http_log_module.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_log_module.c b/src/http/modules/ngx_http_log_module.c index b3c9a1126..edb145992 100644 --- 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 *r, u_char *buf, ngx_http_log_op_t *op) 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; |
