# HG changeset patch # User Sergey Kandaurov # Date 1585407740 -10800 # Node ID f11b7981a03de69f4b6d7935f4c6900c654874b1 # Parent 5649079a41f4c5bf7b1a1bbf663bbc223d51240d HTTP/3: static table cleanup. diff --git a/src/http/v3/ngx_http_v3_tables.c b/src/http/v3/ngx_http_v3_tables.c --- a/src/http/v3/ngx_http_v3_tables.c +++ b/src/http/v3/ngx_http_v3_tables.c @@ -17,7 +17,7 @@ static ngx_int_t ngx_http_v3_new_header( static ngx_http_v3_header_t ngx_http_v3_static_table[] = { { ngx_string(":authority"), ngx_string("") }, - { ngx_string(":path"), ngx_string("/") }, + { ngx_string(":path"), ngx_string("/") }, { ngx_string("age"), ngx_string("0") }, { ngx_string("content-disposition"), ngx_string("") }, { ngx_string("content-length"), ngx_string("0") }, @@ -47,8 +47,8 @@ static ngx_http_v3_header_t ngx_http_v3 { ngx_string(":status"), ngx_string("503") }, { ngx_string("accept"), ngx_string("*/*") }, { ngx_string("accept"), - ngx_string("application/dns-message ") }, - { ngx_string("accept-encoding"), ngx_string("gzip,") }, + ngx_string("application/dns-message") }, + { ngx_string("accept-encoding"), ngx_string("gzip, deflate, br") }, { ngx_string("accept-ranges"), ngx_string("bytes") }, { ngx_string("access-control-allow-headers"), ngx_string("cache-control") }, @@ -62,7 +62,7 @@ static ngx_http_v3_header_t ngx_http_v3 { ngx_string("cache-control"), ngx_string("no-cache") }, { ngx_string("cache-control"), ngx_string("no-store") }, { ngx_string("cache-control"), - ngx_string("public, max-age=31536000 ") }, + ngx_string("public, max-age=31536000") }, { ngx_string("content-encoding"), ngx_string("br") }, { ngx_string("content-encoding"), ngx_string("gzip") }, { ngx_string("content-type"), @@ -90,7 +90,8 @@ static ngx_http_v3_header_t ngx_http_v3 ngx_string("max-age=31536000;includesubdomains;preload") }, { ngx_string("vary"), ngx_string("accept-encoding") }, { ngx_string("vary"), ngx_string("origin") }, - { ngx_string("x-content-type-options"),ngx_string("nosniff") }, + { ngx_string("x-content-type-options"), + ngx_string("nosniff") }, { ngx_string("x-xss-protection"), ngx_string("1;mode=block") }, { ngx_string(":status"), ngx_string("100") }, { ngx_string(":status"), ngx_string("204") }, @@ -123,9 +124,9 @@ static ngx_http_v3_header_t ngx_http_v3 { ngx_string("access-control-request-method"), ngx_string("post") }, { ngx_string("alt-svc"), ngx_string("clear") }, - { ngx_string("horization"), ngx_string("") }, + { ngx_string("authorization"), ngx_string("") }, { ngx_string("content-security-policy"), - ngx_string("script-src") }, + ngx_string("script-src 'none';object-src 'none';base-uri 'none'") }, { ngx_string("early-data"), ngx_string("1") }, { ngx_string("expect-ct"), ngx_string("") }, { ngx_string("forwarded"), ngx_string("") },