From 3565680d94501330d0d6d1d539eb7538a681b425 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 26 Oct 2015 17:46:13 +0300 Subject: [PATCH] HTTP/2: fixed the NGX_HTTP_V2_MAX_FIELD macro. --- src/http/v2/ngx_http_v2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http/v2/ngx_http_v2.h b/src/http/v2/ngx_http_v2.h index b7e73c976..462d254a4 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