We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89440ec commit 6d83023Copy full SHA for 6d83023
test/test.cc
@@ -536,7 +536,7 @@ TEST(YahooRedirectTest, Redirect) {
536
EXPECT_EQ(200, res->status);
537
}
538
539
-TEST(Https2HttpRedirectTest, Redirect) {
+TEST(HttpsToHttpRedirectTest, Redirect) {
540
httplib::SSLClient cli("httpbin.org");
541
cli.follow_location(true);
542
auto res = cli.Get("/redirect-to?url=http%3A%2F%2Fwww.google.com&status_code=302");
@@ -637,7 +637,7 @@ class ServerTest : public ::testing::Test {
637
size_t DATA_CHUNK_SIZE = 4;
638
const auto &d = *data;
639
auto out_len = std::min(static_cast<size_t>(length), DATA_CHUNK_SIZE);
640
- sink(&d[offset], out_len);
+ sink(&d[static_cast<size_t>(offset)], out_len);
641
},
642
[data] { delete data; });
643
})
0 commit comments