Skip to content

Commit 3224881

Browse files
committed
Use $http3 variable instead of $quic
See https://quic.nginx.org/README: In http, an additional variable is available: $http3. The value of $http3 is "h3" for HTTP/3 connections, "hq" for hq connections, or an empty string otherwise. Prevent the following from being reported: nginx: [emerg] unknown "quic" variable
1 parent c2c7956 commit 3224881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/https.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ server {
2121

2222
# Add Alt-Svc header to negotiate HTTP/3.
2323
add_header alt-svc 'h3-27=":8889"; ma=86400, h3-28=":8889"; ma=86400, h3-29=":8889"; ma=86400';
24-
add_header QUIC-Status $quic; # Sent when QUIC was used
24+
add_header QUIC-Status $http3; # Sent when QUIC was used
2525

2626
location / {
2727
root /static;

0 commit comments

Comments
 (0)