Modify header parsing for empty headers, update old and add new tests for header parsing

This commit is contained in:
ado
2024-03-14 11:55:14 +01:00
parent 50de5b3a5a
commit 8b1cf56549
3 changed files with 79 additions and 50 deletions

View File

@@ -531,10 +531,6 @@ private:
[[nodiscard]] bool strict_split(header_splitter& splitter,
std::string& header) {
if (header.empty()) {
return false;
}
if constexpr (throw_on_error) {
try {
splitter.split(header.data(), reader_.delim_);