summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2020-03-28 18:02:20 +0300
committerSergey Kandaurov <pluknet@nginx.com>2020-03-28 18:02:20 +0300
commit7a0b840c51f7ed60453d7fb06731ae024295327b (patch)
treee4fbdc390d99219f6ae30ff80cf7e6e6544b7ee4 /src
parentfa1e1beadca8b1ea900ec654919aea58762ab746 (diff)
downloadnginx-7a0b840c51f7ed60453d7fb06731ae024295327b.tar.gz
nginx-7a0b840c51f7ed60453d7fb06731ae024295327b.tar.bz2
HTTP/3: static table cleanup.
Diffstat (limited to 'src')
-rw-r--r--src/http/v3/ngx_http_v3_tables.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/http/v3/ngx_http_v3_tables.c b/src/http/v3/ngx_http_v3_tables.c
index b4fc90b38..f58f190f1 100644
--- 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(ngx_connection_t *c);
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_static_table[] = {
{ 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_static_table[] = {
{ 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_static_table[] = {
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_static_table[] = {
{ 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("") },