Skip to content

Commit c9f8168

Browse files
authored
Fix remaining ambiguous Get() calls in test_proxy.cc and test.cc
1 parent 654761f commit c9f8168

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

test/test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11976,8 +11976,8 @@ TEST(YahooRedirectTest3, NewResultInterface_Online) {
1197611976
#ifdef CPPHTTPLIB_BROTLI_SUPPORT
1197711977
TEST(DecodeWithChunkedEncoding, BrotliEncoding_Online) {
1197811978
Client cli("https://cdnjs.cloudflare.com");
11979-
auto res =
11980-
cli.Get("/ajax/libs/jquery/3.5.1/jquery.js", {{"Accept-Encoding", "br"}});
11979+
auto res = cli.Get("/ajax/libs/jquery/3.5.1/jquery.js",
11980+
Headers{{"Accept-Encoding", "br"}});
1198111981

1198211982
ASSERT_TRUE(res);
1198311983
EXPECT_EQ(StatusCode::OK_200, res->status);

test/test_proxy.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ template <typename T> void BaseAuthTestFromHTTPWatch(T &cli) {
169169
}
170170

171171
{
172-
auto res = cli.Get("/basic-auth/hello/world",
173-
{make_basic_authentication_header("hello", "world")});
172+
auto res =
173+
cli.Get("/basic-auth/hello/world",
174+
Headers{make_basic_authentication_header("hello", "world")});
174175
ASSERT_TRUE(res != nullptr);
175176
EXPECT_EQ(normalizeJson("{\"authenticated\":true,\"user\":\"hello\"}\n"),
176177
normalizeJson(res->body));

0 commit comments

Comments
 (0)