Skip to content

Commit 08dbe83

Browse files
committed
check wheter new status code shall be set when ignored status is returned
1 parent 3c64fa0 commit 08dbe83

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/requests.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ func checkPoisoningIndicators(repResult *reportResult, request reportRequest, su
8383
for _, status := range Config.IgnoreStatus {
8484
if statusCode1 == status || Config.Website.StatusCode == status {
8585
PrintVerbose("Skipped Status Code "+strconv.Itoa(status)+"\n", NoColor, 2)
86+
_, err := GetWebsite(Config.Website.Url.String(), true, true)
87+
if err != nil {
88+
Print(fmt.Sprintln("Error while checking whether the default status code changed: ", err.Error()), Yellow)
89+
}
8690
return testForResponseSplitting
8791
}
8892
}

0 commit comments

Comments
 (0)