-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
null-versioning and corresponding handler #134
null-versioning and corresponding handler #134
Conversation
Should we mention #119 ? |
Description: err.Error(), | ||
HTTPStatusCode: http.StatusBadRequest, | ||
}, r.URL) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we should add return
statement to avoid further execution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
api/handler/list.go
Outdated
|
||
info, err := h.obj.ListObjectVersions(r.Context(), p) | ||
if err != nil { | ||
h.log.Error("something went wrong", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth moving the error writing response into a separate function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this into a separate function
ffb5264
to
719e9ae
Compare
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
719e9ae
to
f3c74fa
Compare
Closes #119