From acd6f47c708f37f3366a73697e4a17c4dd071f22 Mon Sep 17 00:00:00 2001 From: Tomasz Torcz Date: Thu, 21 Dec 2023 20:51:57 +0100 Subject: [PATCH] scripts/lcp_rtt_exporter: include content length in response (#467) Signed-off-by: Tomasz Torcz --- scripts/lcp_rtt_exporter | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.2