mirror of
https://github.com/drwetter/testssl.sh.git
synced 2024-12-29 04:49:44 +01:00
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:
parent
dcd5acb2af
commit
5e3d8755a1
@ -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: *
|
||||
|
Loading…
Reference in New Issue
Block a user