From 5c19bf58928a6edf55b259958789645599d3debc Mon Sep 17 00:00:00 2001 From: Dirk Date: Tue, 22 Dec 2015 21:08:52 +0100 Subject: [PATCH] - fix for web sites having leading spaces b4 html/xml content starts --- testssl.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testssl.sh b/testssl.sh index b098d87..d3f1cc3 100755 --- a/testssl.sh +++ b/testssl.sh @@ -598,7 +598,7 @@ run_http_header() { local header local -i ret local referer useragent - local url + local url redirect outln; pr_headlineln " Testing HTTP header response @ \"$URL_PATH\" " outln @@ -629,8 +629,8 @@ run_http_header() { debugme echo "$NOW_TIME: $HTTP_TIME" - sed -e '/^$HEADERFILE.2 + sed -e '/^ .$HEADERFILE.2 #### ^^^ Attention: the filtering for the html body only as of now, doesn't work for other content yet mv $HEADERFILE.2 $HEADERFILE # sed'ing in place doesn't work with BSD and Linux simultaneously ret=0 @@ -5478,4 +5478,4 @@ fi exit $? -# $Id: testssl.sh,v 1.428 2015/12/22 19:31:51 dirkw Exp $ +# $Id: testssl.sh,v 1.429 2015/12/22 20:08:51 dirkw Exp $