aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-08-02 13:46:49 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-08-03 21:54:00 +0200
commit1132f43012e44cb779fd916036da9599f31983d6 (patch)
tree204ebb2934ab20b724670cca7b99126bb0235072 /lib
parentdecefd5778f0b1f3b0e1178f2264b39f3c294f10 (diff)
alt-svc: more liberal ALPN name parsing
Allow pretty much anything to be part of the ALPN identifier. In particular minus, which is used for "h3-20" (in-progress HTTP/3 versions) etc. Updated test 356. Closes #4182
Diffstat (limited to 'lib')
-rw-r--r--lib/altsvc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/altsvc.c b/lib/altsvc.c
index 85a4e01b5..e4d3ea605 100644
--- a/lib/altsvc.c
+++ b/lib/altsvc.c
@@ -343,7 +343,7 @@ static CURLcode getalnum(const char **ptr, char *alpnbuf, size_t buflen)
while(*p && ISBLANK(*p))
p++;
protop = p;
- while(*p && ISALNUM(*p))
+ while(*p && !ISBLANK(*p) && (*p != ';') && (*p != '='))
p++;
len = p - protop;