From 732a27196381164c799d345ec0d010b416408555 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 21 Apr 2004 18:54:33 +0000 Subject: nginx-0.0.3-2004-04-21-22:54:33 import --- src/http/ngx_http_request.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/http/ngx_http_request.c') diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 30b3e597e..1697eefae 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -728,8 +728,10 @@ static void ngx_http_process_request_headers(ngx_event_t *rev) /* 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_http_request_t *r) 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) { /* -- cgit