Merge pull request #2491 from drwetter/fix2490_add

Add / improve #2490
This commit is contained in:
Dirk Wetter 2024-04-26 16:11:45 +02:00 committed by GitHub
commit 7eadfd12fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17363,12 +17363,12 @@ run_breach() {
detected_compression=$(sub_breach_helper "$get_command")
case "$detected_compression" in
warn_stalled)
pr_warning "First request failed (HTTP header request stalled and was terminated)\n"
pr_warning "First request failed (HTTP header request stalled and was terminated)"; outln
fileout "$jsonID" "WARN" "Test failed as first HTTP request stalled and was terminated" "$cve" "$cwe"
ret=1
;;
warn_failed)
pr_warning "First request failed (HTTP header request was empty)"
pr_warning "First request failed (HTTP header request was empty)"; outln
fileout "$jsonID" "WARN" "Test failed as first HTTP response was empty" "$cve" "$cwe"
ret=1
;;