From b09cdc415690f6c3933dad4546b1a679f1527251 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 18 Jun 2010 14:58:52 +0000 Subject: [PATCH] 303 See Other --- src/http/ngx_http_header_filter_module.c | 2 +- src/http/ngx_http_request.h | 1 + src/http/ngx_http_special_response.c | 10 +++++++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/http/ngx_http_header_filter_module.c b/src/http/ngx_http_header_filter_module.c index ac7f9f957..a8687d0a6 100644 --- a/src/http/ngx_http_header_filter_module.c +++ b/src/http/ngx_http_header_filter_module.c @@ -68,7 +68,7 @@ static ngx_str_t ngx_http_status_lines[] = { ngx_string("301 Moved Permanently"), ngx_string("302 Moved Temporarily"), - ngx_null_string, /* "303 See Other" */ + ngx_string("303 See Other"), ngx_string("304 Not Modified"), /* ngx_null_string, */ /* "305 Use Proxy" */ diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h index 920b35d8e..ec2405b96 100644 --- a/src/http/ngx_http_request.h +++ b/src/http/ngx_http_request.h @@ -72,6 +72,7 @@ #define NGX_HTTP_SPECIAL_RESPONSE 300 #define NGX_HTTP_MOVED_PERMANENTLY 301 #define NGX_HTTP_MOVED_TEMPORARILY 302 +#define NGX_HTTP_SEE_OTHER 303 #define NGX_HTTP_NOT_MODIFIED 304 #define NGX_HTTP_BAD_REQUEST 400 diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c index afbefba2d..7718d19a7 100644 --- a/src/http/ngx_http_special_response.c +++ b/src/http/ngx_http_special_response.c @@ -65,6 +65,14 @@ static char ngx_http_error_302_page[] = ; +static char ngx_http_error_303_page[] = +"" CRLF +"303 See Other" CRLF +"" CRLF +"

303 See Other

" CRLF +; + + static char ngx_http_error_400_page[] = "" CRLF "400 Bad Request" CRLF @@ -281,7 +289,7 @@ static ngx_str_t ngx_http_error_pages[] = { /* ngx_null_string, */ /* 300 */ ngx_string(ngx_http_error_301_page), ngx_string(ngx_http_error_302_page), - ngx_null_string, /* 303 */ + ngx_string(ngx_http_error_303_page), #define NGX_HTTP_LAST_LEVEL_300 304 #define NGX_HTTP_LEVEL_300 (NGX_HTTP_LAST_LEVEL_300 - 301)