ostree-fetcher-curl: explicitly use HTTP1.1 when HTTP2 is disabled
authorDylan Aïssi <dylan.aissi@collabora.com>
Thu, 15 Jun 2023 12:29:47 +0000 (14:29 +0200)
committerDylan Aïssi <dylan.aissi@collabora.com>
Thu, 15 Jun 2023 13:41:16 +0000 (15:41 +0200)
commitd1ec6cdf8632f596da2fae8a105ca24724072bf7
treee469bf01130fbd20c14b984689d195b3228881fc
parentff805f1c4f404c3501bedddc8f70c22aa2b04024
ostree-fetcher-curl: explicitly use HTTP1.1 when HTTP2 is disabled

The current logic to select the HTTP version to be use relies on
the fact that curl don't use by default HTTP2. This assumption seems wrong with
recent versions of curl.

Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>
src/libostree/ostree-fetcher-curl.c