ParseHeader will now re-merge continuation lines.

Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
Thomas Hochstein 2025-05-29 19:32:39 +02:00
parent d194ef754f
commit eea296391c
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,7 @@ NewsStats 0.4.0 (unreleased)
* Extract TLH check from HostStats to subroutine, fix no-op check.
* Extract getting raw headers from HostStats to subroutine.
* Improve documentation for config file.
* ParseHeader: re-merge continuation lines.
NewsStats 0.3.0 (2025-05-18)
* Extract GroupStats (in gatherstats) to subroutine.

View file

@ -280,7 +280,8 @@ sub ParseHeaders {
} elsif (/^\s/) {
# continuation lines
if ($Label) {
$Header{lc($Label)} .= "\n$_";
s/^\s+/ /;
$Header{lc($Label)} .= $_;
} else {
warn (sprintf("Non-header line: %s\n",$_));
}