From c9f8168913fec5f9a872b910c7d8df01336c13bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 4 Jul 2026 23:56:36 +0000 Subject: [PATCH] Fix remaining ambiguous Get() calls in test_proxy.cc and test.cc --- test/test.cc | 4 ++-- test/test_proxy.cc | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/test.cc b/test/test.cc index 1fd43ae..51e0cf0 100644 --- a/test/test.cc +++ b/test/test.cc @@ -11976,8 +11976,8 @@ TEST(YahooRedirectTest3, NewResultInterface_Online) { #ifdef CPPHTTPLIB_BROTLI_SUPPORT TEST(DecodeWithChunkedEncoding, BrotliEncoding_Online) { Client cli("https://cdnjs.cloudflare.com"); - auto res = - cli.Get("/ajax/libs/jquery/3.5.1/jquery.js", {{"Accept-Encoding", "br"}}); + auto res = cli.Get("/ajax/libs/jquery/3.5.1/jquery.js", + Headers{{"Accept-Encoding", "br"}}); ASSERT_TRUE(res); EXPECT_EQ(StatusCode::OK_200, res->status); diff --git a/test/test_proxy.cc b/test/test_proxy.cc index 54198f5..5683bf3 100644 --- a/test/test_proxy.cc +++ b/test/test_proxy.cc @@ -169,8 +169,9 @@ template void BaseAuthTestFromHTTPWatch(T &cli) { } { - auto res = cli.Get("/basic-auth/hello/world", - {make_basic_authentication_header("hello", "world")}); + auto res = + cli.Get("/basic-auth/hello/world", + Headers{make_basic_authentication_header("hello", "world")}); ASSERT_TRUE(res != nullptr); EXPECT_EQ(normalizeJson("{\"authenticated\":true,\"user\":\"hello\"}\n"), normalizeJson(res->body));