mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 01:33:53 +00:00
Fix #1685
This commit is contained in:
parent
0a629d7391
commit
f63ba7d013
@ -5439,9 +5439,10 @@ TEST(ServerLargeContentTest, DISABLED_SendLargeContent) {
|
|||||||
ASSERT_TRUE(content);
|
ASSERT_TRUE(content);
|
||||||
|
|
||||||
Server svr;
|
Server svr;
|
||||||
svr.Get("/foo", [=](const httplib::Request &req, httplib::Response &resp) {
|
svr.Get("/foo",
|
||||||
resp.set_content(content, content_size, "application/octet-stream");
|
[=](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 listen_thread = std::thread([&svr]() { svr.listen(HOST, PORT); });
|
||||||
auto se = detail::scope_exit([&] {
|
auto se = detail::scope_exit([&] {
|
||||||
@ -6242,7 +6243,7 @@ TEST(MultipartFormDataTest, AlternateFilename) {
|
|||||||
"\r\n"
|
"\r\n"
|
||||||
"text default\r\n"
|
"text default\r\n"
|
||||||
"----------\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"
|
"filename=\"a.txt\"; name=\"file1\"\r\n"
|
||||||
"Content-Type: text/plain\r\n"
|
"Content-Type: text/plain\r\n"
|
||||||
"\r\n"
|
"\r\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user