aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.h
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_request.h
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_request.h')
-rw-r--r--src/http/ngx_http_request.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h
index 2c77f9323..98c0de769 100644
--- a/src/http/ngx_http_request.h
+++ b/src/http/ngx_http_request.h
@@ -54,9 +54,10 @@
#define NGX_HTTP_CLIENT_ERROR 10
#define NGX_HTTP_PARSE_INVALID_METHOD 10
#define NGX_HTTP_PARSE_INVALID_REQUEST 11
-#define NGX_HTTP_PARSE_INVALID_09_METHOD 12
+#define NGX_HTTP_PARSE_INVALID_VERSION 12
+#define NGX_HTTP_PARSE_INVALID_09_METHOD 13
-#define NGX_HTTP_PARSE_INVALID_HEADER 13
+#define NGX_HTTP_PARSE_INVALID_HEADER 14
/* unused 1 */
@@ -136,6 +137,7 @@
#define NGX_HTTP_BAD_GATEWAY 502
#define NGX_HTTP_SERVICE_UNAVAILABLE 503
#define NGX_HTTP_GATEWAY_TIME_OUT 504
+#define NGX_HTTP_VERSION_NOT_SUPPORTED 505
#define NGX_HTTP_INSUFFICIENT_STORAGE 507