From 27af25f57b1a59723ef4eea4c356fc89aa026c9e Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Thu, 29 Apr 2021 14:45:15 +0200 Subject: [PATCH] test: perf restconf rm nginx headers --- test/test_perf_restconf.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/test_perf_restconf.sh b/test/test_perf_restconf.sh index 0c9cbd22..2c37d872 100755 --- a/test/test_perf_restconf.sh +++ b/test/test_perf_restconf.sh @@ -133,8 +133,13 @@ expecteof "time -p $clixon_netconf -qf $cfg" 0 "$DEFAULTHELLO $foutput -# Remove Content-Length line +# Remove Content-Length line (depends on size) sed -i '/Content-Length:/d' $foutput +# Remove (nginx) web-server specific lines +sed -i '/Server:/d' $foutput +sed -i '/Date:/d' $foutput +sed -i '/Transfer-Encoding:/d' $foutput +sed -i '/Connection:/d' $foutput # Create a file to compare with echo "HTTP/1.1 200 OK " > $ftest