forked from TrueCloudLab/frostfs-s3-gw
[#660] Fix panic on invalid versioning status
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
24e1f7e1dd
commit
f013282290
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ func (h *handler) PutBucketVersioningHandler(w http.ResponseWriter, r *http.Requ
|
||||||
}
|
}
|
||||||
|
|
||||||
if configuration.Status != data.VersioningEnabled && configuration.Status != data.VersioningSuspended {
|
if configuration.Status != data.VersioningEnabled && configuration.Status != data.VersioningSuspended {
|
||||||
h.logAndSendError(w, "invalid versioning configuration", reqInfo, err)
|
h.logAndSendError(w, "invalid versioning configuration", reqInfo, errors.GetAPIError(errors.ErrMalformedXML))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
settings.Versioning = configuration.Status
|
settings.Versioning = configuration.Status
|
||||||
|
|
Loading…
Reference in a new issue