Skip to content

Commit 8b70d51

Browse files
committed
clang-format corrected
1 parent 0bc40d6 commit 8b70d51

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

httplib.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5048,10 +5048,10 @@ class MultipartFormDataParser {
50485048

50495049
// parse and emplace space trimmed headers into a map
50505050
if (!parse_header(
5051-
header.data(), header.data() + header.size(),
5052-
[&](const std::string &key, const std::string &val) {
5053-
file_.headers.emplace(key, val);
5054-
})) {
5051+
header.data(), header.data() + header.size(),
5052+
[&](const std::string &key, const std::string &val) {
5053+
file_.headers.emplace(key, val);
5054+
})) {
50555055
is_valid_ = false;
50565056
return false;
50575057
}

test/test.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8029,14 +8029,13 @@ TEST(MultipartFormDataTest, AccessPartHeaders) {
80298029
++it;
80308030
ASSERT_EQ("text2", it->second.name);
80318031
ASSERT_EQ("text2", it->second.content);
8032-
auto& headers = it->second.headers;
8032+
auto &headers = it->second.headers;
80338033
ASSERT_EQ(3, headers.size());
80348034
auto customHeader = headers.find("x-whatever");
80358035
ASSERT_TRUE(customHeader != headers.end());
80368036
ASSERT_NE("customvalue", customHeader->second);
80378037
ASSERT_EQ("CustomValue", customHeader->second);
8038-
ASSERT_TRUE(headers.find("X-Test") == headers.end()); //text1 header
8039-
8038+
ASSERT_TRUE(headers.find("X-Test") == headers.end()); // text1 header
80408039

80418040
handled = true;
80428041
});

0 commit comments

Comments
 (0)