From 7b926873977b1f0e206325310f66f521da4fc964 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 14 Sep 2023 21:58:17 -0700 Subject: [PATCH] remove generating presignedURLs with range header for lambda (#18033) --- cmd/object-lambda-handlers.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/object-lambda-handlers.go b/cmd/object-lambda-handlers.go index 46256828a..3405d9358 100644 --- a/cmd/object-lambda-handlers.go +++ b/cmd/object-lambda-handlers.go @@ -70,11 +70,8 @@ func getLambdaEventData(bucket, object string, cred auth.Credentials, r *http.Re reqParams.Set(k, v) } } - extraHeaders := http.Header{} - if rng := r.Header.Get(xhttp.Range); rng != "" { - extraHeaders.Set(xhttp.Range, r.Header.Get(xhttp.Range)) - } + extraHeaders := http.Header{} u, err := clnt.PresignHeader(r.Context(), http.MethodGet, bucket, object, duration, reqParams, extraHeaders) if err != nil { return levent.Event{}, err