From: Sergey Kandaurov Date: Wed, 16 Dec 2020 12:47:38 +0000 (+0000) Subject: HTTP/3: staticize ngx_http_v3_methods. X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=c3714a8089f50e15966db73c227c4eea6d9f8e77;p=nginx.git HTTP/3: staticize ngx_http_v3_methods. --- diff --git a/src/http/v3/ngx_http_v3_request.c b/src/http/v3/ngx_http_v3_request.c index 2b50133f1..4597bc180 100644 --- a/src/http/v3/ngx_http_v3_request.c +++ b/src/http/v3/ngx_http_v3_request.c @@ -14,7 +14,7 @@ static ngx_int_t ngx_http_v3_process_pseudo_header(ngx_http_request_t *r, ngx_str_t *name, ngx_str_t *value); -struct { +static const struct { ngx_str_t name; ngx_uint_t method; } ngx_http_v3_methods[] = {