mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 01:33:53 +00:00
Fixed warnings
This commit is contained in:
parent
5e01587ed6
commit
eb1fe5b191
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user