comparison src/http/modules/ngx_http_log_module.c @ 4685:956edecaedeb

New core variable: $status. 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 Andrey Belov <defan@nginx.com>
date Mon, 18 Jun 2012 13:43:44 +0000
parents 668ab1a21327
children 4c36e15651f7
comparison
equal deleted inserted replaced
4684:f5c2c9d656f9 4685:956edecaedeb
582 582
583 } else if (r->headers_out.status) { 583 } else if (r->headers_out.status) {
584 status = r->headers_out.status; 584 status = r->headers_out.status;
585 585
586 } else if (r->http_version == NGX_HTTP_VERSION_9) { 586 } else if (r->http_version == NGX_HTTP_VERSION_9) {
587 *buf++ = '0'; 587 status = 9;
588 *buf++ = '0';
589 *buf++ = '9';
590 return buf;
591 588
592 } else { 589 } else {
593 status = 0; 590 status = 0;
594 } 591 }
595 592