Skip to content

Commit

Permalink
Merge pull request #34 from macbre/http3-support
Browse files Browse the repository at this point in the history
Add more h3 versions in alt-svc header
  • Loading branch information
macbre authored May 19, 2021
2 parents 2fc5e88 + 24fc3b5 commit f1779b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
grep --fixed-strings '< HTTP/3 200' /tmp/h3
grep --fixed-strings '< server: nginx' /tmp/h3
grep --fixed-strings '< alt-svc: h3=":8889"; ma=86400' /tmp/h3
grep --fixed-strings '< alt-svc: h3-27=":8889"; ma=86400, h3-28=":8889"; ma=86400, h3-29=":8889"; ma=86400' /tmp/h3
grep --fixed-strings '<p>It works!</p>' /tmp/h3
docker logs test_nginx
2 changes: 1 addition & 1 deletion tests/https.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ server {
ssl_early_data on;

# Add Alt-Svc header to negotiate HTTP/3.
add_header alt-svc 'h3=":8889"; ma=86400';
add_header alt-svc 'h3-27=":8889"; ma=86400, h3-28=":8889"; ma=86400, h3-29=":8889"; ma=86400';

location / {
root /static;
Expand Down

0 comments on commit f1779b7

Please sign in to comment.