mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Code format
This commit is contained in:
parent
cddaedaff8
commit
f1dec77f46
2 changed files with 8 additions and 11 deletions
|
@ -1848,9 +1848,9 @@ protected:
|
|||
});
|
||||
})
|
||||
.Get("/regex-with-delimiter",
|
||||
[&](const Request & req, Response &res) {
|
||||
ASSERT_TRUE(req.has_param("key"));
|
||||
EXPECT_EQ("^(?.*(value))", req.get_param_value("key"));
|
||||
[&](const Request &req, Response & /*res*/) {
|
||||
ASSERT_TRUE(req.has_param("key"));
|
||||
EXPECT_EQ("^(?.*(value))", req.get_param_value("key"));
|
||||
})
|
||||
.Get("/with-range",
|
||||
[&](const Request & /*req*/, Response &res) {
|
||||
|
@ -3357,14 +3357,12 @@ TEST_F(ServerTest, GetStreamedChunkedWithGzip2) {
|
|||
EXPECT_EQ(std::string("123456789"), res->body);
|
||||
}
|
||||
|
||||
|
||||
TEST_F(ServerTest, SplitDelimiterInPathRegex) {
|
||||
auto res = cli_.Get("/regex-with-delimiter?key=^(?.*(value))");
|
||||
ASSERT_TRUE(res);
|
||||
EXPECT_EQ(200, res->status);
|
||||
}
|
||||
|
||||
|
||||
TEST(GzipDecompressor, ChunkedDecompression) {
|
||||
std::string data;
|
||||
for (size_t i = 0; i < 32 * 1024; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue