mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-01-03 10:43:58 +02:00
Set context for S3 requests
This commit is contained in:
parent
d2cca005d3
commit
dde81b49f7
@ -62,6 +62,7 @@ func (t transport) RoundTrip(req *http.Request) (resp *http.Response, err error)
|
||||
}
|
||||
|
||||
s3req, _ := t.svc.GetObjectRequest(input)
|
||||
s3req.SetContext(req.Context())
|
||||
|
||||
if err := s3req.Send(); err != nil {
|
||||
if s3req.HTTPResponse != nil && s3req.HTTPResponse.Body != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user