Skip to content

Commit 198a5f0

Browse files
committed
fix(rating): HSTS not offered does not give a warning
1 parent 3e465ba commit 198a5f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2820,6 +2820,7 @@ run_hsts() {
28202820
if ! is_number "$hsts_age_sec"; then
28212821
pr_svrty_medium "misconfiguration: \'"$hsts_age_sec"\' is not a valid max-age specification"
28222822
fileout "${jsonID}_time" "MEDIUM" "misconfiguration, specified not a number for max-age"
2823+
set_grade_warning "HSTS max-age is misconfigured"
28232824
else
28242825
if [[ -n $hsts_age_sec ]]; then
28252826
hsts_age_days=$(( hsts_age_sec / 86400))
@@ -2859,7 +2860,6 @@ run_hsts() {
28592860
else
28602861
pr_svrty_low "not offered"
28612862
fileout "$jsonID" "LOW" "not offered"
2862-
set_grade_warning "HSTS is disabled"
28632863
fi
28642864
outln
28652865

0 commit comments

Comments
 (0)