diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2006-09-25 17:49:49 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2006-09-25 17:49:49 +0000 |
| commit | 8a3cdc00ffea4ea4fbba2125771293352df6e1ae (patch) | |
| tree | 36f3ce3b3bf68f8d3f4b2e27ec9046d6db47359c /src/http/ngx_http_special_response.c | |
| parent | 586f7a5f5d2bad0202841f18f47f0cae4d229d35 (diff) | |
| download | nginx-8a3cdc00ffea4ea4fbba2125771293352df6e1ae.tar.gz nginx-8a3cdc00ffea4ea4fbba2125771293352df6e1ae.tar.bz2 | |
allowing handling 400 errors via proxy_pass
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_special_response.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index 6658ed07c..8ddfce9c1 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -299,6 +299,9 @@ static ngx_str_t error_pages[] = { }; +static ngx_str_t ngx_http_get_name = { 3, "GET " }; + + ngx_int_t ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error) { @@ -364,6 +367,7 @@ ngx_http_special_response_handler(ngx_http_request_t *r, ngx_int_t error) r->err_status = err_page[i].overwrite; r->method = NGX_HTTP_GET; + r->method_name = ngx_http_get_name; uri = &err_page[i].uri; |
