mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-14 16:58:30 +00:00
clangformat and README update
This commit is contained in:
parent
916b2a8fd3
commit
07e614eef7
2 changed files with 13 additions and 7 deletions
|
@ -1251,11 +1251,9 @@ TEST(ExceptionHandlerTest, ContentLength) {
|
|||
svr.set_exception_handler([](const Request & /*req*/, Response &res,
|
||||
std::exception_ptr ep) {
|
||||
EXPECT_FALSE(ep == nullptr);
|
||||
try{
|
||||
try {
|
||||
std::rethrow_exception(ep);
|
||||
}catch(std::exception& e){
|
||||
EXPECT_EQ("abc", std::string(e.what()));
|
||||
}
|
||||
} catch (std::exception &e) { EXPECT_EQ("abc", std::string(e.what())); }
|
||||
res.status = 500;
|
||||
res.set_content("abcdefghijklmnopqrstuvwxyz",
|
||||
"text/html"); // <= Content-Length still 13 at this point
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue