[curl/curl] ee97f1: schannel: set ALPN length correctly for HTTP/2
Joel Depooter <[email protected]> Wed, 26 May 2021 23:28:46 -0700
| Newsgroups | gmane.comp.web.curl.cvs |
|---|---|
| Message-ID | <curl/curl/push/refs/heads/master/[email protected]> |
Branch: refs/heads/master
Home: https://github.com/curl/curl
Commit: ee97f176970c9667bfbdaab89bc637e77099d1df
https://github.com/curl/curl/commit/ee97f176970c9667bfbdaab89bc637e77099d1df
Author: Joel Depooter <[email protected]>
Date: 2021-05-27 (Thu, 27 May 2021)
Changed paths:
M lib/vtls/schannel.c
Log Message:
-----------
schannel: set ALPN length correctly for HTTP/2
In a3268eca792f1 this code was changed to use the ALPN_H2 constant
instead of the NGHTTP2_PROTO_ALPN constant. However, these constants are
not the same. The nghttp2 constant included the length of the string,
like this: "\x2h2". The ALPN_H2 constant is just "h2". Therefore we need
to re-add the length of the string to the ALPN buffer.
Closes #7138
_______________________________________________
curl-commits mailing list
[email protected]
https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-commits