mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
remove generating presignedURLs with range header for lambda (#18033)
This commit is contained in:
parent
419e5baf16
commit
7b92687397
@ -70,11 +70,8 @@ func getLambdaEventData(bucket, object string, cred auth.Credentials, r *http.Re
|
|||||||
reqParams.Set(k, v)
|
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)
|
u, err := clnt.PresignHeader(r.Context(), http.MethodGet, bucket, object, duration, reqParams, extraHeaders)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return levent.Event{}, err
|
return levent.Event{}, err
|
||||||
|
Loading…
Reference in New Issue
Block a user