mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -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)
|
||||
}
|
||||
}
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user