Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Oct 3, 2023
1 parent 0a629d7 commit f63ba7d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5439,9 +5439,10 @@ TEST(ServerLargeContentTest, DISABLED_SendLargeContent) {
ASSERT_TRUE(content);

Server svr;
svr.Get("/foo", [=](const httplib::Request &req, httplib::Response &resp) {
resp.set_content(content, content_size, "application/octet-stream");
});
svr.Get("/foo",
[=](const httplib::Request & /*req*/, httplib::Response &res) {
res.set_content(content, content_size, "application/octet-stream");
});

auto listen_thread = std::thread([&svr]() { svr.listen(HOST, PORT); });
auto se = detail::scope_exit([&] {
Expand Down Expand Up @@ -6242,7 +6243,7 @@ TEST(MultipartFormDataTest, AlternateFilename) {
"\r\n"
"text default\r\n"
"----------\r\n"
"Content-Disposition: form-data; filename*=\"UTF-8''\%41.txt\"; "
"Content-Disposition: form-data; filename*=\"UTF-8''%41.txt\"; "
"filename=\"a.txt\"; name=\"file1\"\r\n"
"Content-Type: text/plain\r\n"
"\r\n"
Expand Down

0 comments on commit f63ba7d

Please sign in to comment.