ParseHeader will now re-merge continuation lines.
Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
parent
d194ef754f
commit
eea296391c
|
@ -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.
|
||||
|
|
|
@ -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",$_));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue