]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: httpclient: enable ALPN support on outgoing https connections
authorWilly Tarreau <w@1wt.eu>
Fri, 2 Sep 2022 07:02:21 +0000 (09:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Sep 2022 11:54:30 +0000 (13:54 +0200)
commitdf3231c74a6ab18f7b7c9e98851ff8ef672ae04f
tree40f1f086245fdd4ea9d4eb44f2dd58fa96d6d3f9
parentf80713ba8eb4f5397134155330b9c6eb064eb7f7
MEDIUM: httpclient: enable ALPN support on outgoing https connections

Since everything is available for this, let's enable ALPN with the
usual "h2,http/1.1" on the https server. This will allow HTTPS requests
to use HTTP/2 when available.

It may be needed to permit to disable this (or to set the string) in
case some client code explicitly checks for the "HTTP/1.1" string, but
since httpclient is quite young it's unlikely that such code already
exists.
src/http_client.c