mirror of
https://github.com/red0124/ssp.git
synced 2025-12-14 21:59:55 +01:00
Enable the parser to accept a header with one empty field, update unit tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user