Mercurial > hg > nginx
diff src/http/ngx_http_request.c @ 323:ba876b26b76d
nginx-0.0.3-2004-04-21-22:54:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 21 Apr 2004 18:54:33 +0000 |
parents | d71c87d11b16 |
children | 8733703a37f3 |
line wrap: on
line diff
--- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -728,8 +728,10 @@ static void ngx_http_process_request_hea /* there was error while a header line parsing */ -#if (NGX_LOG_DEBUG) - if (rc == NGX_HTTP_PARSE_INVALID_HEADER) { +#if (NGX_DEBUG) + if (rc == NGX_HTTP_PARSE_INVALID_HEADER + && (rev->log->log_level & NGX_LOG_DEBUG_HTTP)) + { u_char *p; for (p = r->header_name_start; p < r->header_in->last - 1; @@ -1249,12 +1251,6 @@ static void ngx_http_set_keepalive(ngx_h wev->event_handler = ngx_http_empty_handler; - /* skip the tralling "\r\n" before the possible pipelined request */ - - while (h->pos < h->last && (*h->pos == CR || *h->pos == LF)) { - h->pos++; - } - if (h->pos < h->last) { /*