From ba8e85a3e62066e2c9d707a65f1e54e27cc0313d Mon Sep 17 00:00:00 2001 From: User65k <15049544+User65k@users.noreply.github.com> Date: Sat, 18 Jan 2025 20:11:15 +0100 Subject: [PATCH 1/2] only offer h2 if it is enabled (#12) --- src/tcp/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcp/mod.rs b/src/tcp/mod.rs index 2641a73..bb0e882 100644 --- a/src/tcp/mod.rs +++ b/src/tcp/mod.rs @@ -259,7 +259,7 @@ fn get_tls_connector() -> io::Result { .with_root_certificates(root_store) .with_no_client_auth(); - #[cfg(feature = "use_hyper")] + #[cfg(all(feature = "use_hyper", feature = "http2"))] config.alpn_protocols.push(b"h2".to_vec()); config.alpn_protocols.push(b"http/1.1".to_vec()); From 041e558e0de73b6d39c0d88f79d54e0d575139a2 Mon Sep 17 00:00:00 2001 From: User65k <15049544+User65k@users.noreply.github.com> Date: Sat, 18 Jan 2025 20:29:59 +0100 Subject: [PATCH 2/2] chore: release v0.6.1 (#13) --- CHANGELOG.md | 14 ++++++++++++++ Cargo.toml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..82e7ad3 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +## [0.6.1](https://github.com/User65k/generic-async-http-client/compare/v0.6.0...v0.6.1) - 2025-01-18 + +### Other + +- only offer h2 if it is enabled ([#12](https://github.com/User65k/generic-async-http-client/pull/12)) diff --git a/Cargo.toml b/Cargo.toml index ae037b4..d27ee61 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "generic-async-http-client" -version = "0.6.0" +version = "0.6.1" authors = ["User65k <15049544+User65k@users.noreply.github.com>"] edition = "2021"