Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.c @ 294:5cfd65b8b0a7
nginx-0.0.3-2004-03-23-09:01:52 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 23 Mar 2004 06:01:52 +0000 |
parents | ec3c049681fd |
children | ee394e997c77 |
comparison
equal
deleted
inserted
replaced
293:ec3c049681fd | 294:5cfd65b8b0a7 |
---|---|
534 | 534 |
535 if (!clcf->tcp_nopush) { | 535 if (!clcf->tcp_nopush) { |
536 /* disable TCP_NOPUSH/TCP_CORK use */ | 536 /* disable TCP_NOPUSH/TCP_CORK use */ |
537 r->connection->tcp_nopush = -1; | 537 r->connection->tcp_nopush = -1; |
538 } | 538 } |
539 | |
540 | |
541 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | |
542 "http cl: " SIZE_T_FMT " max: " SIZE_T_FMT, | |
543 r->headers_in.content_length_n, | |
544 clcf->client_max_body_size); | |
545 | |
546 if (r->headers_in.content_length_n != -1 | |
547 && clcf->client_max_body_size | |
548 && clcf->client_max_body_size < (size_t) r->headers_in.content_length_n) | |
549 { | |
550 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | |
551 "client intented to send too large body: " | |
552 SIZE_T_FMT " bytes", | |
553 r->headers_in.content_length_n); | |
554 | |
555 return NGX_HTTP_REQUEST_ENTITY_TOO_LARGE; | |
556 } | |
557 | |
539 | 558 |
540 if (auto_redirect) { | 559 if (auto_redirect) { |
541 if (!(r->headers_out.location = | 560 if (!(r->headers_out.location = |
542 ngx_http_add_header(&r->headers_out, ngx_http_headers_out))) | 561 ngx_http_add_header(&r->headers_out, ngx_http_headers_out))) |
543 { | 562 { |