diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-08-31 18:42:26 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-08-31 18:42:26 +0300 |
commit | e443b1244f60448805a873bf488a9d9f89bf7488 (patch) | |
tree | 0129bc6e13a5b10feaca67f1ff42d178d69284ea /src/http/v3/ngx_http_v3_encode.c | |
parent | d73a289c432b280913cfff4abffc5d40aa34318f (diff) | |
download | nginx-e443b1244f60448805a873bf488a9d9f89bf7488.tar.gz nginx-e443b1244f60448805a873bf488a9d9f89bf7488.zip |
HTTP/3: do not set the never-indexed literal bit by default.
The "Literal Header Field Never Indexed" header field representation is not
used in HTTP/2, and it makes little sense to make a distinction in HTTP/3.
Diffstat (limited to 'src/http/v3/ngx_http_v3_encode.c')
-rw-r--r-- | src/http/v3/ngx_http_v3_encode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http/v3/ngx_http_v3_encode.c b/src/http/v3/ngx_http_v3_encode.c index a80310faf..b7bc3dd7c 100644 --- a/src/http/v3/ngx_http_v3_encode.c +++ b/src/http/v3/ngx_http_v3_encode.c @@ -145,7 +145,7 @@ ngx_http_v3_encode_header_lri(u_char *p, ngx_uint_t dynamic, ngx_uint_t index, + len; } - *p = dynamic ? 0x60 : 0x70; + *p = dynamic ? 0x40 : 0x50; p = (u_char *) ngx_http_v3_encode_prefix_int(p, index, 4); *p = 0; @@ -171,7 +171,7 @@ ngx_http_v3_encode_header_l(u_char *p, ngx_str_t *name, ngx_str_t *value) + value->len; } - *p = 0x30; + *p = 0x20; p = (u_char *) ngx_http_v3_encode_prefix_int(p, name->len, 3); ngx_strlow(p, name->data, name->len); @@ -213,7 +213,7 @@ ngx_http_v3_encode_header_lpbi(u_char *p, ngx_uint_t index, u_char *data, + len; } - *p = 0x08; + *p = 0; p = (u_char *) ngx_http_v3_encode_prefix_int(p, index, 3); *p = 0; |