Skip to content

Commit

Permalink
Use $http3 variable instead of $quic
Browse files Browse the repository at this point in the history
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
  • Loading branch information
macbre committed Feb 2, 2022
1 parent c2c7956 commit 3224881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/https.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ server {

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

location / {
root /static;
Expand Down

0 comments on commit 3224881

Please sign in to comment.