From: Tomasz Torcz Date: Thu, 21 Dec 2023 19:51:57 +0000 (+0100) Subject: scripts/lcp_rtt_exporter: include content length in response (#467) X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=acd6f47c708f37f3366a73697e4a17c4dd071f22 scripts/lcp_rtt_exporter: include content length in response (#467) Signed-off-by: Tomasz Torcz --- diff --git a/scripts/lcp_rtt_exporter b/scripts/lcp_rtt_exporter index 6fab745..4b57d2a 100644 --- a/scripts/lcp_rtt_exporter +++ b/scripts/lcp_rtt_exporter @@ -21,8 +21,10 @@ use List::Util qw(sum max min); my $stats = compute_statistics($data, 60); my $s = metrics($stats); + my $length = length($s); - print "Content-type: text/plain\n\n$s"; + print "Content-type: text/plain\n"; + print "Content-length: $length\n\n$s"; exit; }