diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-04-21 18:54:33 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-04-21 18:54:33 +0000 |
commit | 732a27196381164c799d345ec0d010b416408555 (patch) | |
tree | 043848398927223e1b08d1b15c071b3a23717d76 /src/http/ngx_http_request.c | |
parent | bb570859043557c5c1b20d933ff2e4c18d13c980 (diff) | |
download | nginx-732a27196381164c799d345ec0d010b416408555.tar.gz nginx-732a27196381164c799d345ec0d010b416408555.zip |
nginx-0.0.3-2004-04-21-22:54:33 import
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 12 |
1 files changed, 4 insertions, 8 deletions
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) { /* |