fix: object lock behavior when default lock config is enabled (#9305)

This commit is contained in:
kannappanr
2020-04-13 14:03:23 -07:00
committed by GitHub
parent cc9b63eb51
commit 1fa65c7f2f
6 changed files with 38 additions and 13 deletions

View File

@@ -1103,7 +1103,7 @@ func (api objectAPIHandlers) GetBucketObjectLockConfigHandler(w http.ResponseWri
if err != nil {
var aerr APIError
if err == errConfigNotFound {
aerr = errorCodes.ToAPIErr(ErrMethodNotAllowed)
aerr = errorCodes.ToAPIErr(ErrObjectLockConfigurationNotFound)
} else {
aerr = toAPIError(ctx, err)
}