Mercurial > hg > nginx-vendor-current
comparison src/http/ngx_http_special_response.c @ 692:6db6e93f55ee NGINX_1_3_9
nginx 1.3.9
*) Feature: support for chunked transfer encoding while reading client
request body.
*) Feature: the $request_time and $msec variables can now be used not
only in the "log_format" directive.
*) Bugfix: cache manager and cache loader processes might not be able to
start if more than 512 listen sockets were used.
*) Bugfix: in the ngx_http_dav_module.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 27 Nov 2012 00:00:00 +0400 |
parents | 597573166f34 |
children |
comparison
equal
deleted
inserted
replaced
691:acfd484db0ca | 692:6db6e93f55ee |
---|---|
258 ; | 258 ; |
259 | 259 |
260 | 260 |
261 static char ngx_http_error_501_page[] = | 261 static char ngx_http_error_501_page[] = |
262 "<html>" CRLF | 262 "<html>" CRLF |
263 "<head><title>501 Method Not Implemented</title></head>" CRLF | 263 "<head><title>501 Not Implemented</title></head>" CRLF |
264 "<body bgcolor=\"white\">" CRLF | 264 "<body bgcolor=\"white\">" CRLF |
265 "<center><h1>501 Method Not Implemented</h1></center>" CRLF | 265 "<center><h1>501 Not Implemented</h1></center>" CRLF |
266 ; | 266 ; |
267 | 267 |
268 | 268 |
269 static char ngx_http_error_502_page[] = | 269 static char ngx_http_error_502_page[] = |
270 "<html>" CRLF | 270 "<html>" CRLF |
382 case NGX_HTTP_REQUEST_URI_TOO_LARGE: | 382 case NGX_HTTP_REQUEST_URI_TOO_LARGE: |
383 case NGX_HTTP_TO_HTTPS: | 383 case NGX_HTTP_TO_HTTPS: |
384 case NGX_HTTPS_CERT_ERROR: | 384 case NGX_HTTPS_CERT_ERROR: |
385 case NGX_HTTPS_NO_CERT: | 385 case NGX_HTTPS_NO_CERT: |
386 case NGX_HTTP_INTERNAL_SERVER_ERROR: | 386 case NGX_HTTP_INTERNAL_SERVER_ERROR: |
387 case NGX_HTTP_NOT_IMPLEMENTED: | |
387 r->keepalive = 0; | 388 r->keepalive = 0; |
388 } | 389 } |
389 } | 390 } |
390 | 391 |
391 if (r->lingering_close) { | 392 if (r->lingering_close) { |
418 } | 419 } |
419 | 420 |
420 r->expect_tested = 1; | 421 r->expect_tested = 1; |
421 | 422 |
422 if (ngx_http_discard_request_body(r) != NGX_OK) { | 423 if (ngx_http_discard_request_body(r) != NGX_OK) { |
423 error = NGX_HTTP_INTERNAL_SERVER_ERROR; | 424 r->keepalive = 0; |
424 } | 425 } |
425 | 426 |
426 if (clcf->msie_refresh | 427 if (clcf->msie_refresh |
427 && r->headers_in.msie | 428 && r->headers_in.msie |
428 && (error == NGX_HTTP_MOVED_PERMANENTLY | 429 && (error == NGX_HTTP_MOVED_PERMANENTLY |