diff options
author | Valentin Bartenev <vbart@nginx.com> | 2015-10-26 17:46:13 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2015-10-26 17:46:13 +0300 |
commit | 3565680d94501330d0d6d1d539eb7538a681b425 (patch) | |
tree | 791724febeb0e527b9d5cd4464bbf237a9eebb6b | |
parent | 9150c7df1f6b266590b4d9397bd5e3c7e396d01a (diff) |
HTTP/2: fixed the NGX_HTTP_V2_MAX_FIELD macro.
-rw-r--r-- | src/http/v2/ngx_http_v2.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/v2/ngx_http_v2.h b/src/http/v2/ngx_http_v2.h index b7e73c97..462d254a 100644 --- a/src/http/v2/ngx_http_v2.h +++ b/src/http/v2/ngx_http_v2.h @@ -21,7 +21,8 @@ #define NGX_HTTP_V2_MAX_FRAME_SIZE ((1 << 24) - 1) #define NGX_HTTP_V2_INT_OCTETS 4 -#define NGX_HTTP_V2_MAX_FIELD ((1 << NGX_HTTP_V2_INT_OCTETS * 7) - 1) +#define NGX_HTTP_V2_MAX_FIELD \ + (127 + (1 << (NGX_HTTP_V2_INT_OCTETS - 1) * 7) - 1) #define NGX_HTTP_V2_DATA_DISCARD 1 #define NGX_HTTP_V2_DATA_ERROR 2 |