Mercurial > hg > nginx-vendor-1-0
comparison src/http/ngx_http_special_response.c @ 236:c982febb7588 NGINX_0_4_3
nginx 0.4.3
*) Change: now the 499 error could not be redirected using an
"error_page" directive.
*) Feature: the Solaris 10 event ports support.
*) Feature: the ngx_http_browser_module.
*) Bugfix: a segmentation fault may occur while redirecting the 400
error to the proxied server using an "proxy_pass" directive.
*) Bugfix: a segmentation fault occurred if an unix domain socket was
used in an "proxy_pass" directive; bug appeared in 0.3.47.
*) Bugfix: SSI did work with memcached and nonbuffered responses.
*) Workaround: of the Sun Studio PAUSE hardware capability bug.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 26 Sep 2006 00:00:00 +0400 |
parents | 38e7b94d63ac |
children | a528ae0fe909 |
comparison
equal
deleted
inserted
replaced
235:f622c719b711 | 236:c982febb7588 |
---|---|
297 ngx_null_string, /* 506 */ | 297 ngx_null_string, /* 506 */ |
298 ngx_string(error_507_page) | 298 ngx_string(error_507_page) |
299 }; | 299 }; |
300 | 300 |
301 | 301 |
302 static ngx_str_t ngx_http_get_name = { 3, (u_char *) "GET " }; | |
303 | |
304 | |
302 ngx_int_t | 305 ngx_int_t |
303 ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error) | 306 ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error) |
304 { | 307 { |
305 u_char *p; | 308 u_char *p; |
306 size_t msie_refresh; | 309 size_t msie_refresh; |
362 | 365 |
363 if (err_page[i].status == error) { | 366 if (err_page[i].status == error) { |
364 r->err_status = err_page[i].overwrite; | 367 r->err_status = err_page[i].overwrite; |
365 | 368 |
366 r->method = NGX_HTTP_GET; | 369 r->method = NGX_HTTP_GET; |
370 r->method_name = ngx_http_get_name; | |
367 | 371 |
368 uri = &err_page[i].uri; | 372 uri = &err_page[i].uri; |
369 | 373 |
370 if (err_page[i].uri_lengths) { | 374 if (err_page[i].uri_lengths) { |
371 if (ngx_http_script_run(r, uri, | 375 if (ngx_http_script_run(r, uri, |