comparison src/http/ngx_http_special_response.c @ 716:d8d7c39e3a76

allowing handling 400 errors via proxy_pass
author Igor Sysoev <igor@sysoev.ru>
date Mon, 25 Sep 2006 17:49:49 +0000
parents 7e24168b0853
children 08652aae6fab
comparison
equal deleted inserted replaced
715:cbd18f013385 716:d8d7c39e3a76
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, "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,