fix: regression from range GET proxy on replicated buckets #14345 (#14532)

Fixes: #14531
This commit is contained in:
Poorna
2022-03-11 15:56:49 -08:00
committed by GitHub
parent 47d4fabb58
commit f8d6eaaa96
2 changed files with 13 additions and 1 deletions

View File

@@ -703,5 +703,6 @@ func isErrMethodNotAllowed(err error) bool {
}
func isErrInvalidRange(err error) bool {
return errors.As(err, &errInvalidRange)
_, ok := err.(InvalidRange)
return ok
}