aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_special_response.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2017-04-25 23:39:13 +0300
committerRuslan Ermilov <ru@nginx.com>2017-04-25 23:39:13 +0300
commit8ae2bc932013b838b925cdbb0cae59f743e699c7 (patch)
tree7c741c9dd1c710fcde3250fc013d78fdb0934c64 /src/http/ngx_http_special_response.c
parent53e63ff7c3bef19bd6bba333c3aafad8897869ab (diff)
downloadnginx-8ae2bc932013b838b925cdbb0cae59f743e699c7.tar.gz
nginx-8ae2bc932013b838b925cdbb0cae59f743e699c7.zip
Don't pretend we support HTTP major versions >1 as HTTP/1.1.
Diffstat (limited to 'src/http/ngx_http_special_response.c')
-rw-r--r--src/http/ngx_http_special_response.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c
index c4c13053b..2c1ff1743 100644
--- a/src/http/ngx_http_special_response.c
+++ b/src/http/ngx_http_special_response.c
@@ -321,6 +321,14 @@ static char ngx_http_error_504_page[] =
;
+static char ngx_http_error_505_page[] =
+"<html>" CRLF
+"<head><title>505 HTTP Version Not Supported</title></head>" CRLF
+"<body bgcolor=\"white\">" CRLF
+"<center><h1>505 HTTP Version Not Supported</h1></center>" CRLF
+;
+
+
static char ngx_http_error_507_page[] =
"<html>" CRLF
"<head><title>507 Insufficient Storage</title></head>" CRLF
@@ -395,7 +403,7 @@ static ngx_str_t ngx_http_error_pages[] = {
ngx_string(ngx_http_error_502_page),
ngx_string(ngx_http_error_503_page),
ngx_string(ngx_http_error_504_page),
- ngx_null_string, /* 505 */
+ ngx_string(ngx_http_error_505_page),
ngx_null_string, /* 506 */
ngx_string(ngx_http_error_507_page)