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 {
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 }
Original file line number Diff line number Diff 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 });
You can’t perform that action at this time.
0 commit comments