Fixed warnings

This commit is contained in:
yhirose 2020-05-08 21:29:33 -04:00
parent 5e01587ed6
commit eb1fe5b191

View File

@ -566,8 +566,8 @@ TEST(DigestAuthTest, FromHTTPWatch) {
EXPECT_EQ(400, res->status); EXPECT_EQ(400, res->status);
} }
// NOTE: Until httpbin.org fixes issue #46, the following test is commented out. // NOTE: Until httpbin.org fixes issue #46, the following test is commented
// Plese see https://httpbin.org/digest-auth/auth/hello/world // out. Plese see https://httpbin.org/digest-auth/auth/hello/world
// cli.set_digest_auth("bad", "world"); // cli.set_digest_auth("bad", "world");
// for (auto path : paths) { // for (auto path : paths) {
// auto res = cli.Get(path.c_str()); // auto res = cli.Get(path.c_str());
@ -2091,8 +2091,7 @@ TEST_F(ServerTest, KeepAlive) {
Get(requests, "/not-exist"); Get(requests, "/not-exist");
Post(requests, "/empty", "", "text/plain"); Post(requests, "/empty", "", "text/plain");
Post( Post(
requests, "/empty", 0, requests, "/empty", 0, [&](size_t, size_t, httplib::DataSink &) {},
[&](size_t offset, size_t length, httplib::DataSink &sink) {},
"text/plain"); "text/plain");
std::vector<Response> responses; std::vector<Response> responses;