Skip to content

Commit

Permalink
303 See Other
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsysoev committed Jun 18, 2010
1 parent 0f6ae59 commit ebd8830
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/http/ngx_http_header_filter_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" */
Expand Down
1 change: 1 addition & 0 deletions src/http/ngx_http_request.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion src/http/ngx_http_special_response.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ebd8830

Please sign in to comment.