diff options
author | Roman Arutyunyan <arut@nginx.com> | 2021-02-16 18:50:01 +0300 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2021-02-16 18:50:01 +0300 |
commit | c83be09720cf8dff041db6581d9df26c88bd3463 (patch) | |
tree | 30ecc4832cdd4184fd06a24cc67e764f628ecf17 /src/http/v3/ngx_http_v3_parse.c | |
parent | 8ca2f73073da431d8e747589eac5b49a7c0faa5b (diff) | |
download | nginx-c83be09720cf8dff041db6581d9df26c88bd3463.tar.gz nginx-c83be09720cf8dff041db6581d9df26c88bd3463.zip |
HTTP/3: removed http3_max_field_size.
Instead, size of one large_client_header_buffers buffer is used.
Diffstat (limited to 'src/http/v3/ngx_http_v3_parse.c')
-rw-r--r-- | src/http/v3/ngx_http_v3_parse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/http/v3/ngx_http_v3_parse.c b/src/http/v3/ngx_http_v3_parse.c index 7c22b482c..b7cf242ba 100644 --- a/src/http/v3/ngx_http_v3_parse.c +++ b/src/http/v3/ngx_http_v3_parse.c @@ -488,8 +488,8 @@ static ngx_int_t ngx_http_v3_parse_literal(ngx_connection_t *c, ngx_http_v3_parse_literal_t *st, u_char ch) { - ngx_uint_t n; - ngx_http_v3_srv_conf_t *h3scf; + ngx_uint_t n; + ngx_http_core_srv_conf_t *cscf; enum { sw_start = 0, sw_value @@ -505,11 +505,11 @@ ngx_http_v3_parse_literal(ngx_connection_t *c, ngx_http_v3_parse_literal_t *st, n = st->length; - h3scf = ngx_http_v3_get_module_srv_conf(c, ngx_http_v3_module); + cscf = ngx_http_v3_get_module_srv_conf(c, ngx_http_core_module); - if (n > h3scf->max_field_size) { + if (n > cscf->large_client_header_buffers.size) { ngx_log_error(NGX_LOG_INFO, c->log, 0, - "client exceeded http3_max_field_size limit"); + "client sent too large header field"); return NGX_HTTP_V3_ERR_EXCESSIVE_LOAD; } |