Mercurial > hg > nginx
diff src/http/ngx_http_special_response.c @ 6993:8801ff7d58e1
Don't pretend we support HTTP major versions >1 as HTTP/1.1.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 25 Apr 2017 23:39:13 +0300 |
parents | be5cfa918bfc |
children | 170922952477 |
line wrap: on
line diff
--- 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)