aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-06-18 14:58:52 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-06-18 14:58:52 +0000
commitebd883092bca097707d8470636239cb14ef470b4 (patch)
tree3639dc3335eab50c57d3e0643dfeb845024abdff /src
parent0f6ae5906d99f19598f98533e7ac6a942433cdc1 (diff)
downloadnginx-ebd883092bca097707d8470636239cb14ef470b4.tar.gz
nginx-ebd883092bca097707d8470636239cb14ef470b4.zip
303 See Other
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_header_filter_module.c2
-rw-r--r--src/http/ngx_http_request.h1
-rw-r--r--src/http/ngx_http_special_response.c10
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[] =
+"<html>" CRLF
+"<head><title>303 See Other</title></head>" CRLF
+"<body bgcolor=\"white\">" CRLF
+"<center><h1>303 See Other</h1></center>" CRLF
+;
+
+
static char ngx_http_error_400_page[] =
"<html>" CRLF
"<head><title>400 Bad Request</title></head>" 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)