Skip to content

Commit

Permalink
scripts/lcp_rtt_exporter: include content length in response (#467)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Torcz <tomek@pipebreaker.pl>
  • Loading branch information
zdzichu authored Dec 21, 2023
1 parent 04f8519 commit acd6f47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/lcp_rtt_exporter
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit acd6f47

Please sign in to comment.