File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -5048,10 +5048,10 @@ class MultipartFormDataParser {
5048
5048
5049
5049
// parse and emplace space trimmed headers into a map
5050
5050
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
+ })) {
5055
5055
is_valid_ = false ;
5056
5056
return false ;
5057
5057
}
Original file line number Diff line number Diff line change @@ -8029,14 +8029,13 @@ TEST(MultipartFormDataTest, AccessPartHeaders) {
8029
8029
++it;
8030
8030
ASSERT_EQ (" text2" , it->second .name );
8031
8031
ASSERT_EQ (" text2" , it->second .content );
8032
- auto & headers = it->second .headers ;
8032
+ auto & headers = it->second .headers ;
8033
8033
ASSERT_EQ (3 , headers.size ());
8034
8034
auto customHeader = headers.find (" x-whatever" );
8035
8035
ASSERT_TRUE (customHeader != headers.end ());
8036
8036
ASSERT_NE (" customvalue" , customHeader->second );
8037
8037
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
8040
8039
8041
8040
handled = true ;
8042
8041
});
You can’t perform that action at this time.
0 commit comments