Skip to content

Commit acd6f47

Browse files
authored
scripts/lcp_rtt_exporter: include content length in response (#467)
Signed-off-by: Tomasz Torcz <tomek@pipebreaker.pl>
1 parent 04f8519 commit acd6f47

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/lcp_rtt_exporter

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ use List::Util qw(sum max min);
2121
my $stats = compute_statistics($data, 60);
2222

2323
my $s = metrics($stats);
24+
my $length = length($s);
2425

25-
print "Content-type: text/plain\n\n$s";
26+
print "Content-type: text/plain\n";
27+
print "Content-length: $length\n\n$s";
2628
exit;
2729
}
2830

0 commit comments

Comments
 (0)