@@ -96,7 +96,7 @@ func (c *ModuleConfig) SetOptions(options ...ModuleConfigOption) error {
96
96
97
97
// IsBlockCode returns true if the code is a configured block code
98
98
func (c * ModuleConfig ) IsBlockCode (code int ) bool {
99
- return code >= 300
99
+ return code >= 300 && code <= 599
100
100
}
101
101
102
102
// IsAllowCode returns true if the code is an allow code
@@ -113,7 +113,7 @@ func (c *ModuleConfig) AllowUnknownContentLength() bool {
113
113
//
114
114
// Deprecated: The `AltResponseCodes` concept has
115
115
// been deprecated in favor of treating all response
116
- // codes 300 and greater as blocking codes. Due to
116
+ // codes 300-599 as blocking codes. Due to
117
117
// this, this method will always return nil. It is left
118
118
// here to avoid breakage, but will eventually be removed.
119
119
func (c * ModuleConfig ) AltResponseCodes () []int {
@@ -216,7 +216,7 @@ func AllowUnknownContentLength(allow bool) ModuleConfigOption {
216
216
//
217
217
// Deprecated: The `AltResponseCodes` concept has
218
218
// been deprecated in favor of treating all response
219
- // codes 300 and greater as blocking codes. Due to
219
+ // codes 300-599 as blocking codes. Due to
220
220
// this, this method will always return nil. It is left
221
221
// here to avoid breakage, but will eventually be removed.
222
222
func AltResponseCodes (codes ... int ) ModuleConfigOption {
0 commit comments