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 TLH check from HostStats to subroutine, fix no-op check.
|
||||||
* Extract getting raw headers from HostStats to subroutine.
|
* Extract getting raw headers from HostStats to subroutine.
|
||||||
* Improve documentation for config file.
|
* Improve documentation for config file.
|
||||||
|
* ParseHeader: re-merge continuation lines.
|
||||||
|
|
||||||
NewsStats 0.3.0 (2025-05-18)
|
NewsStats 0.3.0 (2025-05-18)
|
||||||
* Extract GroupStats (in gatherstats) to subroutine.
|
* Extract GroupStats (in gatherstats) to subroutine.
|
||||||
|
|
|
@ -280,7 +280,8 @@ sub ParseHeaders {
|
||||||
} elsif (/^\s/) {
|
} elsif (/^\s/) {
|
||||||
# continuation lines
|
# continuation lines
|
||||||
if ($Label) {
|
if ($Label) {
|
||||||
$Header{lc($Label)} .= "\n$_";
|
s/^\s+/ /;
|
||||||
|
$Header{lc($Label)} .= $_;
|
||||||
} else {
|
} else {
|
||||||
warn (sprintf("Non-header line: %s\n",$_));
|
warn (sprintf("Non-header line: %s\n",$_));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue