Skip to content

Commit

Permalink
Merge pull request #220 from vbanos/fix-red
Browse files Browse the repository at this point in the history
Improve isStatusCodeRedirect
  • Loading branch information
CorentinB authored Feb 12, 2025
2 parents 2e217db + 0b7dee6 commit 6c4db80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/pkg/postprocessor/utils.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package postprocessor

func isStatusCodeRedirect(statusCode int) bool {
if statusCode == 300 || statusCode == 301 ||
statusCode == 302 || statusCode == 307 ||
statusCode == 308 {
switch statusCode {
case 300, 301, 302, 303, 307, 308:
return true
default:
return false
}
return false
}

0 comments on commit 6c4db80

Please sign in to comment.