Enable the parser to accept a header with one empty field, update unit tests

This commit is contained in:
ado
2024-03-14 14:58:33 +01:00
parent 8b1cf56549
commit c097732352
6 changed files with 307 additions and 225 deletions

View File

@@ -558,11 +558,6 @@ private:
for (const auto& [begin, end] : splitter.get_split_data()) {
std::string field{begin, end};
if (field.empty()) {
handle_error_duplicate_header_field(field);
header_.clear();
return;
}
if (std::find(header_.begin(), header_.end(), field) !=
header_.end()) {
handle_error_duplicate_header_field(field);