Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.c @ 214:e0c502f15852
nginx-0.0.1-2003-12-22-12:40:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 22 Dec 2003 09:40:48 +0000 |
parents | f536f91e8e99 |
children | 5adc2b75f8a5 |
comparison
equal
deleted
inserted
replaced
213:f536f91e8e99 | 214:e0c502f15852 |
---|---|
655 | 655 |
656 } else if (rc != NGX_AGAIN) { | 656 } else if (rc != NGX_AGAIN) { |
657 | 657 |
658 /* there was error while a header line parsing */ | 658 /* there was error while a header line parsing */ |
659 | 659 |
660 #if (NGX_LOG_DEBUG) | |
661 if (rc == NGX_HTTP_PARSE_INVALID_HEADER) { | |
662 char *p; | |
663 for (p = r->header_name_start; | |
664 p < r->header_in->last - 1; | |
665 p++) | |
666 { | |
667 if (*p == CR || *p == LF) { | |
668 break; | |
669 } | |
670 } | |
671 *p = '\0'; | |
672 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, rev->log, 0, | |
673 "http invalid header: \"%s\"", | |
674 r->header_name_start); | |
675 } | |
676 #endif | |
677 | |
660 ngx_http_client_error(r, rc, NGX_HTTP_BAD_REQUEST); | 678 ngx_http_client_error(r, rc, NGX_HTTP_BAD_REQUEST); |
661 return; | 679 return; |
662 } | 680 } |
663 | 681 |
664 /* NGX_AGAIN: a header line parsing is still not complete */ | 682 /* NGX_AGAIN: a header line parsing is still not complete */ |
1417 ngx_log_error(NGX_LOG_ALERT, log, 0, | 1435 ngx_log_error(NGX_LOG_ALERT, log, 0, |
1418 "http request already closed"); | 1436 "http request already closed"); |
1419 return; | 1437 return; |
1420 } | 1438 } |
1421 | 1439 |
1422 if (error) { | 1440 if (error && r->headers_out.status == 0) { |
1423 r->headers_out.status = error; | 1441 r->headers_out.status = error; |
1424 } | 1442 } |
1425 | 1443 |
1426 ngx_http_log_handler(r); | 1444 ngx_http_log_handler(r); |
1427 | 1445 |