Skip to content

Commit

Permalink
Fixed unit tests due to the change in #763
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Nov 20, 2020
1 parent b21dc8c commit cee062d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2334,7 +2334,7 @@ TEST(GzipDecompressor, ChunkedDecompression) {
#ifdef CPPHTTPLIB_BROTLI_SUPPORT
TEST_F(ServerTest, GetStreamedChunkedWithBrotli) {
Headers headers;
headers.emplace("Accept-Encoding", "brotli");
headers.emplace("Accept-Encoding", "br");

auto res = cli_.Get("/streamed-chunked", headers);
ASSERT_TRUE(res);
Expand All @@ -2344,7 +2344,7 @@ TEST_F(ServerTest, GetStreamedChunkedWithBrotli) {

TEST_F(ServerTest, GetStreamedChunkedWithBrotli2) {
Headers headers;
headers.emplace("Accept-Encoding", "brotli");
headers.emplace("Accept-Encoding", "br");

auto res = cli_.Get("/streamed-chunked2", headers);
ASSERT_TRUE(res);
Expand Down Expand Up @@ -2693,7 +2693,7 @@ TEST_F(ServerTest, Brotli) {
auto res = cli_.Get("/compress", headers);

ASSERT_TRUE(res);
EXPECT_EQ("brotli", res->get_header_value("Content-Encoding"));
EXPECT_EQ("br", res->get_header_value("Content-Encoding"));
EXPECT_EQ("text/plain", res->get_header_value("Content-Type"));
EXPECT_EQ("19", res->get_header_value("Content-Length"));
EXPECT_EQ("123456789012345678901234567890123456789012345678901234567890123456"
Expand Down Expand Up @@ -3628,7 +3628,7 @@ TEST(YahooRedirectTest3, NewResultInterface) {
TEST(DecodeWithChunkedEncoding, BrotliEncoding) {
Client cli("https://cdnjs.cloudflare.com");
auto res = cli.Get("/ajax/libs/jquery/3.5.1/jquery.js",
{{"Accept-Encoding", "brotli"}});
{{"Accept-Encoding", "br"}});

ASSERT_TRUE(res);
EXPECT_EQ(200, res->status);
Expand Down

0 comments on commit cee062d

Please sign in to comment.