From 8d62f184c7cad73220269a2235a41116ed51fd7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20B=C3=B6ker?= Date: Sun, 28 Jan 2024 10:48:31 +0100 Subject: [PATCH] Fix HTTP1.1 connection caching with explicitly given version --- lib/Cro/HTTP/Client.pm6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cro/HTTP/Client.pm6 b/lib/Cro/HTTP/Client.pm6 index 2776f53..6408f26 100644 --- a/lib/Cro/HTTP/Client.pm6 +++ b/lib/Cro/HTTP/Client.pm6 @@ -264,7 +264,7 @@ class Cro::HTTP::Client { } } } - if $http ne '1.1' && %!cached-http1{$key} -> @available { + if $http ne '2' && %!cached-http1{$key} -> @available { while @available { my $pipeline = @available.shift; return $pipeline unless $pipeline.dead;