forked from TrueCloudLab/frostfs-node
[#264] object/get: Prevent receiving payloads through GETRANGE when GET
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
66f9532857
commit
8e661d5c37
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ func (exec *execCtx) initFromChild(id *objectSDK.ID) (prev *objectSDK.ID, childr
|
||||||
}
|
}
|
||||||
|
|
||||||
func (exec *execCtx) overtakePayloadDirectly(children []*objectSDK.ID, rngs []*objectSDK.Range, checkRight bool) {
|
func (exec *execCtx) overtakePayloadDirectly(children []*objectSDK.ID, rngs []*objectSDK.Range, checkRight bool) {
|
||||||
withRng := len(rngs) > 0
|
withRng := len(rngs) > 0 && exec.ctxRange() != nil
|
||||||
|
|
||||||
for i := range children {
|
for i := range children {
|
||||||
var r *objectSDK.Range
|
var r *objectSDK.Range
|
||||||
|
|
Loading…
Reference in a new issue