remove duplicate header name for other_header in file output

The Finding of other_headers such as "Referrer-Policy" during file output are displayed as `$header: $HEADERVALUE` instead of only `$HEADERVALUE` as the good_headers. This leads to duplicate information e.g. in the JSON output file.
This commit is contained in:
Janosch Maier 2019-09-18 19:23:17 +02:00 committed by Janosch Maier
parent dcd5acb2af
commit 5e3d8755a1

View File

@ -3046,7 +3046,7 @@ run_security_headers() {
fi
pr_litecyan "$header"
outln " $HEADERVALUE" # shouldn't be that long
fileout "$header" "INFO" "$header: $HEADERVALUE"
fileout "$header" "INFO" "$HEADERVALUE"
fi
done
#TODO: I am not testing for the correctness or anything stupid yet, e.g. "X-Frame-Options: allowall" or Access-Control-Allow-Origin: *