mirror of
https://github.com/curl/curl.git
synced 2026-08-01 14:18:52 +03:00
alt-svc: add protocol version selection masking
So that users can mask in/out specific HTTP versions when Alt-Svc is used. - Removed "h2c" and updated test case accordingly - Changed how the altsvc struct is laid out - Added ifdefs to make the unittest run even in a quiche-tree Closes #4201
This commit is contained in:
parent
a93b43cde8
commit
69b3ff5118
5 changed files with 69 additions and 64 deletions
|
|
@ -32,7 +32,7 @@ unit1654
|
|||
<file name="log/1654" mode="text">
|
||||
h2 example.com 443 h3 shiny.example.com 8443 "20191231 00:00:00" 0 1
|
||||
# a comment
|
||||
h2c example.com 443 h3 shiny.example.com 8443 "20291231 23:30:00" 0 1
|
||||
h2 foo.example.com 443 h3 shiny.example.com 8443 "20291231 23:30:00" 0 1
|
||||
h1 example.com 443 h3 shiny.example.com 8443 "20121231 00:00:01" 0 1
|
||||
h3 example.com 443 h3 shiny.example.com 8443 "20131231 00:00:00" 0 1
|
||||
# also a comment
|
||||
|
|
@ -45,14 +45,14 @@ rubbish
|
|||
# Your alt-svc cache. https://curl.haxx.se/docs/alt-svc.html
|
||||
# This file was generated by libcurl! Edit at your own risk.
|
||||
h2 example.com 443 h3 shiny.example.com 8443 "20191231 00:00:00" 0 1
|
||||
h2c example.com 443 h3 shiny.example.com 8443 "20291231 23:30:00" 0 1
|
||||
h2 foo.example.com 443 h3 shiny.example.com 8443 "20291231 23:30:00" 0 1
|
||||
h1 example.com 443 h3 shiny.example.com 8443 "20121231 00:00:01" 0 1
|
||||
h3 example.com 443 h3 shiny.example.com 8443 "20131231 00:00:00" 0 1
|
||||
h1 example.org 8080 h2 example.com 8080 "20190125 22:34:21" 0 0
|
||||
h1 2.example.org 8080 h3 2.example.org 8080 "20190125 22:34:21" 0 0
|
||||
h1 3.example.org 8080 h2 example.com 8080 "20190125 22:34:21" 0 0
|
||||
h1 3.example.org 8080 h3 yesyes.com 8080 "20190125 22:34:21" 0 0
|
||||
h2c example.org 80 h2 example.com 443 "20190124 22:36:21" 0 0
|
||||
h2 example.org 80 h2 example.com 443 "20190124 22:36:21" 0 0
|
||||
</file>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue