File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2977,6 +2977,11 @@ class ServerTest : public ::testing::Test {
2977
2977
res.status = 401 ;
2978
2978
res.set_header (" WWW-Authenticate" , " Basic realm=123456" );
2979
2979
})
2980
+ .Delete (" /issue609" ,
2981
+ [](const httplib::Request &, httplib::Response &res,
2982
+ const httplib::ContentReader &) {
2983
+ res.set_content (" ok" , " text/plain" );
2984
+ })
2980
2985
#if defined(CPPHTTPLIB_ZLIB_SUPPORT) || defined(CPPHTTPLIB_BROTLI_SUPPORT)
2981
2986
.Get (" /compress" ,
2982
2987
[&](const Request & /* req*/ , Response &res) {
@@ -4048,6 +4053,13 @@ TEST_F(ServerTest, Issue1772) {
4048
4053
EXPECT_EQ (StatusCode::Unauthorized_401, res->status );
4049
4054
}
4050
4055
4056
+ TEST_F (ServerTest, Issue609) {
4057
+ auto res = cli_.Delete (" /issue609" );
4058
+ ASSERT_TRUE (res);
4059
+ EXPECT_EQ (StatusCode::OK_200, res->status );
4060
+ EXPECT_EQ (std::string (" ok" ), res->body );
4061
+ }
4062
+
4051
4063
TEST_F (ServerTest, GetStreamedChunked) {
4052
4064
auto res = cli_.Get (" /streamed-chunked" );
4053
4065
ASSERT_TRUE (res);
You can’t perform that action at this time.
0 commit comments