mirror of
https://github.com/curl/curl.git
synced 2026-08-24 17:33:33 +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
|
|
@ -90,7 +90,7 @@ UNITTEST_START
|
|||
fail_unless(asi->num == 8, "wrong number of entries");
|
||||
|
||||
result = Curl_altsvc_parse(curl, asi, "h2=\"example.com:443\"; ma = 120;",
|
||||
ALPN_h2c, "example.org", 80);
|
||||
ALPN_h2, "example.org", 80);
|
||||
if(result) {
|
||||
fprintf(stderr, "Curl_altsvc_parse(4) failed!\n");
|
||||
unitfail++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue