Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2.c @ 6260:0e37389c0bd5
HTTP/2: fixed parsing of literal header fields without indexing.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 19 Oct 2015 16:16:47 +0300 |
parents | 9dfc4ba140f9 |
children | adaac65899c8 |
comparison
equal
deleted
inserted
replaced
6259:2f34ea503ac4 | 6260:0e37389c0bd5 |
---|---|
1231 /* literal header field never indexed */ | 1231 /* literal header field never indexed */ |
1232 prefix = ngx_http_v2_prefix(4); | 1232 prefix = ngx_http_v2_prefix(4); |
1233 | 1233 |
1234 } else { | 1234 } else { |
1235 /* literal header field without indexing */ | 1235 /* literal header field without indexing */ |
1236 prefix = ngx_http_v2_prefix(3); | 1236 prefix = ngx_http_v2_prefix(4); |
1237 } | 1237 } |
1238 | 1238 |
1239 value = ngx_http_v2_parse_int(h2c, &pos, end, prefix); | 1239 value = ngx_http_v2_parse_int(h2c, &pos, end, prefix); |
1240 | 1240 |
1241 if (value < 0) { | 1241 if (value < 0) { |